how could i extract the output of the included mfile in GUI callback function to edit text
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
hello i am a new user of matlab and GUI. i am doing a college project on GUI. i have included a script in callback function of pushbutton ,now i want to display it in edit box. that is i am unable to extract the output from the script file and pass it to edit text. how can i do that, kindly reply
0 Kommentare
Antworten (1)
Dishant Arora
am 11 Mär. 2014
function pushbutton_callback()
Output = yourFunctionFile;
set(handles.edit1 , 'string' , Output)
2 Kommentare
Dishant Arora
am 11 Mär. 2014
% To be mentioned under gui opening function
setappdata(0 , 'handlesEdit' , handles.edit1)
set(getappdata(0 , 'handlesEdit') , 'string' , Output) % in you script file
Siehe auch
Kategorien
Mehr zu Environment and Settings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!