필터 지우기
필터 지우기

How to take output from another m file in gui?

조회 수: 1 (최근 30일)
Rohan Ghare
Rohan Ghare 2013년 6월 13일
댓글: rohit 2020년 9월 2일
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)
  댓글 수: 3
Walter Roberson
Walter Roberson 2013년 6월 14일
Do not include the ".m" extension.
function my_push_callback(src, event)
my_m_file();
end
rohit
rohit 2020년 9월 2일
If you are using App designer:
plot(app.UIAxes,x,y);

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

추가 답변 (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