Azzera filtri
Azzera filtri

Some basic questions on GUI

6 visualizzazioni (ultimi 30 giorni)
Song Lee
Song Lee il 7 Ott 2013
Commentato: Song Lee il 8 Ott 2013
Hello. Actually I have many questions on GUI in matlab. Could you please help me? I had experienced MFC Windows Programming but GUI in matlab is very unfamiliar to me. My questions are as follows:
Q1. If I want to add other controls on GUI after I already made a GUI and revised the code, how can I just add some controls maintaining what I wrote before?
Q2. When I saved my GUI and the code of GUI is created, do I need like a main function to revise or it is okay to write codes in the code of GUI?
Q3. I'd like to update figure drawn by imshow function on GUI whenever I change a slider control and related variable. Is there any good example to practice this?
Your help in this would be greatly appreciated in advance. Thank you.

Risposta accettata

Jan
Jan il 7 Ott 2013
Modificato: Jan il 7 Ott 2013
Q1. Simply add the new element and the corresponding callback. I do not see a reason for interferences.
Q2. This is not clear. It seems like you are using GUIDE to create the GUI. This is not required. GUIDE creates a FIG file, which is actually a MAT file which contains the data of the GUI elements, and an M-file, which contains the callback functions and the main function. You do not need further code to run a GUI.
Q3. http://www.mathworks.com/matlabcentral/fileexchange/24861-41-complete-gui-examples. Here you find all you need to create GUIs without GUIDE also.
  1 Commento
Song Lee
Song Lee il 8 Ott 2013
Thank you for your answer! I will try what you explained.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by