필터 지우기
필터 지우기

Some basic questions on GUI

조회 수: 6 (최근 30일)
Song Lee
Song Lee 2013년 10월 7일
댓글: Song Lee 2013년 10월 8일
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.

채택된 답변

Jan
Jan 2013년 10월 7일
편집: Jan 2013년 10월 7일
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
Song Lee
Song Lee 2013년 10월 8일
Thank you for your answer! I will try what you explained.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by