Multiple GUI's together for the same program

Hi for everyone ,
I want to make 2 GUI's for my program How i can make them , and how i can linked them together by some buttons ?
Thnx ..

댓글 수: 3

Jan
Jan 2011년 11월 27일
This question is to vague to be answered. Please add any details.
Amani
Amani 2011년 11월 27일
hmmm .. I mean that i wanna to make two windows , one of them get first as introductory , and if i click a button must show me the second window.
I hope you understood what i mean :(
Omer Yuval
Omer Yuval 2020년 10월 18일
https://uk.mathworks.com/matlabcentral/fileexchange/81348-gui_template

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

 채택된 답변

Jared
Jared 2011년 11월 27일

1 개 추천

Suppose you have 2 GUIs main and ext_plot you can open the 2nd GUI from main with the line
ext_plot;
You can pass variables using getappdata and setappdata suppose we want to pass a function into ext_plot to graph.
% In main
f = 'x^2+y^2';
setappdata(0, 'function', f);
ext_plot;
% In ext_plot
f=getappdata(0, 'function');
func=inline(f);
ezsurf(func,[-2 2]);

댓글 수: 1

Amani
Amani 2011년 11월 28일
Thanxx alot :)
It is okay , but if i don't want the main still exist after the opening of ext_plot, what can i do ?
I mean the first must close after the second was opened.

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

카테고리

도움말 센터File Exchange에서 Language Support에 대해 자세히 알아보기

태그

질문:

2011년 11월 27일

댓글:

2020년 10월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by