Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
sandeep
sandeep le 29 Mar 2011
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,

Réponses (2)

Matt Fig
Matt Fig le 29 Mar 2011
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 le 17 Avr 2014
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 commentaire
PRABHJOT SINGH
PRABHJOT SINGH le 3 Oct 2014
me also having the same problem ..... did u found out any solution ??

Connectez-vous pour commenter.

Catégories

En savoir plus sur Interactive Control and Callbacks dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by