필터 지우기
필터 지우기

Help about Building GUI

조회 수: 1 (최근 30일)
Mayur
Mayur 2011년 4월 20일
Hey guys i'm building GUI for my MATLAB code. I have built a GUI in which there is a button which calls to my main code and then on execution of that code figures pop up in different windows. I want to open these figures in the main GUI itself. What should i do?
Also is it possible to change the background of my GUI with an image??
Please suggest me e-book for building GUI in MATLAB.. Thank you..

채택된 답변

Paulo Silva
Paulo Silva 2011년 4월 20일
Have a look at the nice examples:
Also the solution for the background image:
I don't know a good ebook but the MATLAB documentation on the GUIs and Matt Fig examples are a good start, there are more examples of GUIs at the File Exchange
  댓글 수: 3
Mayur
Mayur 2011년 4월 20일
Thank you
Paulo Silva
Paulo Silva 2011년 4월 20일
@Jarrod this was for those times you beat me to it, too many times ahaha :)

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

추가 답변 (1개)

Jarrod Rivituso
Jarrod Rivituso 2011년 4월 20일
There are a lot of GUI examples in the file exchange. Here's one from Mr. Matt Fig himself:
To get a GUI callback to plot on a specific axes, try putting the axes handle in the plot command
>> plot(handles.axes1,x,y);
Also, I'm not sure if you can have a generic background image for a figure. However, you can change the color
>> set(handles.figure1,'Color',[1 0 0]) %set color to red
Hope this helps!

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by