How to call contents from an m file into GUI callback functions?
3 次查看(过去 30 天)
显示 更早的评论
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,
0 个评论
回答(2 个)
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...
0 个评论
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!