How to execute .m file by pressing Push button in the created GUI?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Aishwarya D
am 22 Apr. 2014
Kommentiert: sed banj
am 30 Apr. 2022
I have tried using run(.m). but it's not working.
function pushbutton2_Callback(hObject, eventdata, handles) % hObject handle to pushbutton2 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) run(tikhnovphh1)
0 Kommentare
Akzeptierte Antwort
Chandrasekhar
am 22 Apr. 2014
write only the file name instead of run(tikhnovphh1).
function pushbutton2_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
tikhnovphh1; %m file to be executed.
4 Kommentare
Othmane ELMOUATAMID
am 18 Jul. 2018
Bearbeitet: Othmane ELMOUATAMID
am 18 Jul. 2018
Thank you, it works well.
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Dialog Boxes 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!