How to execute an operating system command and return output in matlab app designer with a button?
古いコメントを表示
I have this old matlab gui interface which I imported to the app designer. Here, I was using the command Status=system('OpenSees.exe gravity.tcl'); for a button and it works perfectly.
Now I am trying to recreate this old interface using the new app designer with the same code. But this code doesn't work the same way, as I get the following legend in the command window : 'OpenSees.exe' is not recognized as an internal or external command, operable program or batch file.
The exe file works fine and its located inside the same folder as the code and app code
4 件のコメント
Kojiro Saito
2022 年 7 月 8 日
Are you running this app from MATLAB? Or, did you compile it to a standalone app using MATLAB Compiler?
Heirleking
2022 年 7 月 8 日
編集済み: Heirleking
2022 年 7 月 8 日
Jan
2022 年 7 月 9 日
The message means, that the OpenSees.exe file is not found. Where is it? Prefer provideing the path:
Status=system('C:\Path\To\Your\OpenSees.exe gravity.tcl');
Heirleking
2022 年 7 月 9 日
編集済み: Heirleking
2022 年 7 月 9 日
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Introduction to Installation and Licensing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!