how to create a Fig for GUI?
42 views (last 30 days)
Paulo Silva on 8 Sep 2011
Just type and execute:
and have fun with it, don't forget to read the documentation
The other way is to do it all on one function with subfunctions and lots of code, start with guide and when you feel comfortable using it you can do all with code, no .fig file required.
Jan on 8 Sep 2011
Beside using GUIDE, you can create a GUI manually also. Some examples can be found in the toolboxes, e.g. read the sources of MSGBOX, LISTDLG and HELPDLG. A minimal example:
DlgH = figure;
ButtonH = uicontrol('Sytle', 'PushButton', 'Position', [10, 10, 100, 22], ...
'String', 'Button', 'Callback', 'disp(clock)');
[EDITED]: Please use "Style" instead of the typo "Sytle"!
You will get a more specific answer, if you explain your demands with any details.