|
|
EE509
|
|
Building GUI
interfaces in Matlab MATLAB
This
example shows how to build user GUI in Matlab. We will build a simple
calculator to do that. Start gui
builder by typing
Select
"Blank GUI", click OK The GUI
window will open Resize the
design window.
Double-click
on an object to open the properties dialog. Change the captions on the
buttons and remove "Static Text" string from the text window. Set the
font size 30 for the text windows and change horizontal alingment
to "right."
The GUI is
finished. Save the work.
Open the
matlab editor by typing Each time
you press a button, a callback function is executed.
This
function will have to be modified to provide required functionality.
Do the same
for the rest of the buttons, except "=".
Now the
calculator is ready to use. Of course, it misses a lot of
functionality, but ![]() ![]() |
|
|
Last Updated: |
Contact the instructor at: esazonov@clarkson.edu
|