필터 지우기
필터 지우기

How to execute an operating system command and return output in matlab app designer with a button?

조회 수: 9 (최근 30일)
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
Jan
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
Heirleking 2022년 7월 9일
편집: Heirleking 2022년 7월 9일
Both the old GUI and the new one with the app designer are on the same folder with the OpenSees.exe file. Why does one run it and the other doesn't? Or is there a different code I have to use for the app designer? I have seen it changes a lot when comparing it to the exported one from GUI.
After restarting MATLAB it ran for both codes

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by