How to execute .m file by pressing Push button in the created GUI?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Aishwarya D
il 22 Apr 2014
Commentato: sed banj
il 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 Commenti
Risposta accettata
Chandrasekhar
il 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 Commenti
Othmane ELMOUATAMID
il 18 Lug 2018
Modificato: Othmane ELMOUATAMID
il 18 Lug 2018
Thank you, it works well.
Più risposte (1)
Vedere anche
Categorie
Scopri di più su Dialog Boxes in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!