Graphics and Graphical User Interface Programming
MATLAB supports developing applications with graphical user interface features. MATLAB includes GUIDE (GUI development environment) for graphically designing GUIs. It also has tightly integrated graph-plotting features. For example the function plot can be used to produce a graph from two vectors x and y. The code:
x = 0:pi/100:2*pi; y = sin(x); plot(x,y)produces the following figure of the sine function:
A MATLAB program can produce three-dimensional graphics using the functions surf, plot3 or mesh.
= meshgrid(-10:0.25:10,-10:0.25:10); f = sinc(sqrt((X/pi).^2+(Y/pi).^2)); mesh(X,Y,f); axis xlabel('{\bfx}') ylabel('{\bfy}') zlabel('{\bfsinc} ({\bfR})') hidden off | = meshgrid(-10:0.25:10,-10:0.25:10); f = sinc(sqrt((X/pi).^2+(Y/pi).^2)); surf(X,Y,f); axis xlabel('{\bfx}') ylabel('{\bfy}') zlabel('{\bfsinc} ({\bfR})') | |
This code produces a wireframe 3D plot of the two-dimensional unnormalized sinc function: | This code produces a surface 3D plot of the two-dimensional unnormalized sinc function: | |
In MATLAB, graphical user interfaces can be programed with the GUI design environment (GUIDE) tool.
Read more about this topic: MATLAB
Famous quotes containing the words user and/or programming:
“A worker may be the hammers master, but the hammer still prevails. A tool knows exactly how it is meant to be handled, while the user of the tool can only have an approximate idea.”
—Milan Kundera (b. 1929)
“If there is a price to pay for the privilege of spending the early years of child rearing in the drivers seat, it is our reluctance, our inability, to tolerate being demoted to the backseat. Spurred by our success in programming our children during the preschool years, we may find it difficult to forgo in later states the level of control that once afforded us so much satisfaction.”
—Melinda M. Marshall (20th century)