Creating Graphical User Interfaces Previous page   Next Page

GUI with Uicontrols

The following figure shows the GUI with Uicontrols template displayed in the Layout Editor.

GUI with UI controls

When you run the GUI by clicking the Run icon , the GUI appears as shown in the following figure.

GUI for calculating mass

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).


Previous page  Blank GUI GUI with Axes and Menu Next page

© 1994-2005 The MathWorks, Inc.