Undefined function 'simset' for input arguments of type 'char'.

6 ビュー (過去 30 日間)
Pedro Augusto de Castro e Castro
Pedro Augusto de Castro e Castro 2020 年 2 月 10 日
コメント済み: Jim Riggs 2020 年 2 月 13 日
Hello,
I have a main GUI (Optimizer) that calls another GUI (Simulation), and this one runs a simulink model. In the Simulation GUI, I have a .m file and in this file I have the following line:
options = simset('SrcWorkspace','current');
When I run the code directly from the Simulation GUI, I've got no problems. However, when I run the Optimizer GUI I get the following error:
Error Message:
Undefined function 'simset' for input arguments of type 'char'.
How can I fix this? Any ideas?
Thanks in advance!

回答 (1 件)

Jim Riggs
Jim Riggs 2020 年 2 月 11 日
simset is an obsolete function.
See documentation here. It says to use the Configuration Parameters dialog box.
  2 件のコメント
Pedro Augusto de Castro e Castro
Pedro Augusto de Castro e Castro 2020 年 2 月 13 日
I see, but why it works when I call it from a GUI but doesn't when I call it from a GUI inside another GUI?
Jim Riggs
Jim Riggs 2020 年 2 月 13 日
It's hard to say. Obsolete functions are no longer supported. They may cause unexpected results.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeApp Building についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by