How to take output from another m file in gui?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Rohan Ghare
am 13 Jun. 2013
Kommentiert: rohit
am 2 Sep. 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?
Akzeptierte Antwort
David Sanchez
am 13 Jun. 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 Kommentare
Walter Roberson
am 14 Jun. 2013
Do not include the ".m" extension.
function my_push_callback(src, event)
my_m_file();
end
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Interactive Control and Callbacks finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!