Borrar filtros
Borrar filtros

How to take output from another m file in gui?

1 visualización (últimos 30 días)
Rohan Ghare
Rohan Ghare el 13 de Jun. de 2013
Comentada: rohit el 2 de Sept. de 2020
hi, I am rohan, I have new to gui , i want to make gui in which when I chick to push button one program should run (which is having plot of sine wave) but that output can show in gui axes again can anyone help me out please?
  1 comentario
Rohan Ghare
Rohan Ghare el 13 de Jun. de 2013
the out put of m file is plot which is in another figure window then how can it display in that gui

Iniciar sesión para comentar.

Respuesta aceptada

David Sanchez
David Sanchez el 13 de Jun. de 2013
to run any other m-file from the GUI, just make a call to the desired m-file on the pushbutton callback function.
function my_push_callback(...)
my_m_file.m;
To plot to axes within the GUI, take note of the tag assigned to the axes in property manager:
plot(x,y,'Parent',handles.axes_tag)
  3 comentarios
Walter Roberson
Walter Roberson el 14 de Jun. de 2013
Do not include the ".m" extension.
function my_push_callback(src, event)
my_m_file();
end
rohit
rohit el 2 de Sept. de 2020
If you are using App designer:
plot(app.UIAxes,x,y);

Iniciar sesión para comentar.

Más respuestas (1)

Vishal Rane
Vishal Rane el 13 de Jun. de 2013
Refer these :

Categorías

Más información sobre Migrate GUIDE Apps 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