How to change the values (numeric and strings) of variables of an m.file with GUI

1 view (last 30 days)
Hi to all,
i created m files that contain functions and a main script. I want to run the main script for many different cases but the main script has a lot of input information(values of variables, names of files etc). For these reason i decided to create a GUI environment to import each time the data i want to the main script.It's more easy to import graphically the numeric values or the strings of the variables, rather than to open each time the main script file and write them down. I tried to use the checkbox and the pushbuttons but it is very difficult. Do you know if it is possible to do such things with guide? If yes, could you please send me a relative link in order to see similar examples? If no, could you please tell me a different way to do what i have in mind?
Thanks in advance!

Accepted Answer

dpb
dpb on 3 Oct 2013
Look at
doc listdlg
doc uigetfile
and referenced friends therefrom for simpler, prepackaged dialogs that may be what you want/need to put something to together more quickly.
help uitools % list of UI functions from which to choose...

More Answers (1)

Lysimachos-Ioannis
Lysimachos-Ioannis on 4 Oct 2013
Thanks for your answer. Maybe i will do it as you proposed. So do you think that it is not possible to do the same by creating a GUI with GUIDE?
  1 Comment
dpb
dpb on 4 Oct 2013
Oh, I'm sure it is but I don't do GUIs so I'm not the one to advise on details...my Matlab use is solely for the results, not for presentation to the user (which is always also solely me).

Sign in to comment.

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!