Borrar filtros
Borrar filtros

Multiple GUI's together for the same program

8 visualizaciones (últimos 30 días)
Amani
Amani el 27 de Nov. de 2011
Comentada: Omer Yuval el 18 de Oct. de 2020
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 comentarios
Amani
Amani el 27 de Nov. de 2011
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 el 18 de Oct. de 2020
https://uk.mathworks.com/matlabcentral/fileexchange/81348-gui_template

Iniciar sesión para comentar.

Respuesta aceptada

Jared
Jared el 27 de Nov. de 2011
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 comentario
Amani
Amani el 28 de Nov. de 2011
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.

Iniciar sesión para comentar.

Más respuestas (1)

Image Analyst
Image Analyst el 27 de Nov. de 2011

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by