How to prevent simulink model windows to maximize automatically?

8 ビュー (過去 30 日間)
Alejandra Ríos
Alejandra Ríos 2020 年 11 月 12 日
コメント済み: Alejandra Ríos 2020 年 11 月 16 日
Hello there!
I've been working with evolutive algorithms that use both code and a simulink model. These run an average of 10000 executions, and every execution opens the simulink model automatically and maximizes, which I find it disruptive, cause I need to use my computer for other purposes meanwhile the executions are solved in matlab and this function takes me out from the window I am currently using, like this moment, that I need to reconfirm this window to keep writing.
Thank you for every recommendation!
Alejandra

採用された回答

Sourabh Kondapaka
Sourabh Kondapaka 2020 年 11 月 16 日
編集済み: Sourabh Kondapaka 2020 年 11 月 16 日
You mentioned that you are using code and a simulink model and in every execution opens the simulink model. You can avoid opening the simulink model in 2 ways:
Approach 1:
I'm assuming you are using open_system() to open the simulink model. If you want to continue using this command you can load the simulink model without opening it in the simulink editor by adding an input argument 'loadonly' to the command as shown below. Please refer this link for more information.
open_system('f14','loadonly')
Approach 2:
You can use load_system() command instead of "open_system()" to load the model into memory without opening in the Simulink Editor as shown below. Please refer this link for more information
h = load_system("vdp")
  1 件のコメント
Alejandra Ríos
Alejandra Ríos 2020 年 11 月 16 日
Thank you for solving my problem, I was actually using the open_system() command and these approaches helped too much. Regards!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgrammatic Model Editing についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by