Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Problem regarding Simulink model & GUI interfacing

1 回表示 (過去 30 日間)
S. Gopal
S. Gopal 2016 年 3 月 29 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
How can I interface a Simulink model to a GUI in MATLAB 2010a. I am using 'sim()' in command window & I am getting the result, but when I paste the same command inside a callback function of a push-button in GUI. There is no response. What should I do? Thank You.

回答 (1 件)

Walter Roberson
Walter Roberson 2016 年 3 月 29 日
When sim() is called inside a function, the results are saved into the workspace of the function, and will disappear when the function returns. When sim() is called from the command line or from the menus, then the results are saved into the base workspace, where they will stay until cleared or overwritten.

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by