필터 지우기
필터 지우기

How to call contents from an m file into GUI callback functions?

조회 수: 1 (최근 30일)
sandeep
sandeep 2011년 3월 29일
댓글: PRABHJOT SINGH 2014년 10월 3일
Hello all,
I am trying to call the data from a .m file into GUI call back functions using some push buttons in GUI.
Can anyone please tell me how can I do this
regards,

답변 (2개)

Matt Fig
Matt Fig 2011년 3월 29일
To run the M-file in the callback, just put the name of the M-file in the callback. For example:
function pushbuttoncallback(Hobj,Evnt,varargin)
% Callback function for the pushbutton.
Dat = mfilename;
% Now do whatever with the data in Dat...

monu
monu 2014년 4월 17일
hello.. i have a program in m-file ...n i want to run that file when gui pushbutton is clicked..and the output of that m-file should be displayed in edit box..... plz tell me the solution ..... i m doing m.tech thesis on matlab gui .......
  댓글 수: 1
PRABHJOT SINGH
PRABHJOT SINGH 2014년 10월 3일
me also having the same problem ..... did u found out any solution ??

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

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by