How to execute .m file by pressing Push button in the created GUI?
4 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Chandrasekhar
2014 年 4 月 22 日
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 件のコメント
Othmane ELMOUATAMID
2018 年 7 月 18 日
編集済み: Othmane ELMOUATAMID
2018 年 7 月 18 日
Thank you, it works well.
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Dialog Boxes についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!