How to take output from another m file in gui?

1 次查看(过去 30 天)
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 个评论
Rohan Ghare
Rohan Ghare 2013-6-13
the out put of m file is plot which is in another figure window then how can it display in that gui

请先登录,再进行评论。

采纳的回答

David Sanchez
David Sanchez 2013-6-13
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)

更多回答(1 个)

Vishal Rane
Vishal Rane 2013-6-13
Refer these :

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by