How to open a simulink model in maximized mode through matlab command line?

9 次查看(过去 30 天)
Hi i used a command open_system('sys_nmae') to open a simulink modle. but this command open a simulink model in small sized window not as my monitor size. i want open a model in maximized mode through matlab command line as i attached in the image.

采纳的回答

Andreas Goser
Andreas Goser 2016-2-25
编辑:Andreas Goser 2016-2-25
In my experience, a model gets opened just in a way it was save last. Does it not preserve it in your case? What's your release and OS?
There might be better ways, but at least you can influence the location by using something like
set_param(bdroot,'Location',[x1 y1 x2 y2]);
and make this closed to waht you expect as maximized.
  1 个评论
sri prakash muniyandi
hello andreas, thank you, this is the one i expected. for doing it in a generic way i used "get(0,'ScreenSize')" so it gives the screen size so that i can avoid hard-coding of my Location in
set_param(bdroot,'Location',[x1 y1 x2 y2]);

请先登录,再进行评论。

更多回答(0 个)

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by