Opening a simulink model through same instance : App designer

5 次查看(过去 30 天)
I am working in MATLAB app designer. I have one instance of MATLAB GUI already open.. I have used a pushButton in app designer, which opens a simulink model when pushed. But the model is opened in a different GUI Window of MATLAB. I want the simulink model to open through same instance, which is already open.
What changes should I make in the "sim" command ?

采纳的回答

Fangjun Jiang
Fangjun Jiang 2021-1-28
When you open a Simulink model, the model is always opened in the built-in, Mathworks' Simulink GUI. I don't think you can open the Simulink model in a GUI that is contained in your own APP.
  13 个评论
Fangjun Jiang
Fangjun Jiang 2021-2-3
uigetfile() is for selecting a file. It will not open the file.
FileName=uigetfile();
open_system(FileName);

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Functions 的更多信息

标签

产品


版本

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by