Creating Graphical User Interfaces |
GUI with Uicontrols
The following figure shows the GUI with Uicontrols template displayed in the Layout Editor.
When you run the GUI by clicking the Run icon , the GUI appears as shown in the following figure.
When a user enters values for the density and volume of an object, and clicks the Calculate button, the GUI calculates the mass of the object and displays the result next to Mass(D*V)
.
Blank GUI | GUI with Axes and Menu |
© 1994-2005 The MathWorks, Inc.