Comments on: I can’t believe it took me 6 months to find that! https://blogs.mathworks.com/simulink/2013/02/13/i-cant-beleive-it-took-me-6-months-to-find-that/?s_tid=feedtopost Guy Rouleau is an Application Engineer for MathWorks. He writes here about Simulink and other MathWorks tools used in Model-Based Design. Tue, 06 Aug 2019 15:59:37 +0000 hourly 1 https://wordpress.org/?v=6.2.2 By: Matthias Schwaiger https://blogs.mathworks.com/simulink/2013/02/13/i-cant-beleive-it-took-me-6-months-to-find-that/#comment-260554 Tue, 06 Aug 2019 15:59:37 +0000 https://blogs.mathworks.com/seth/?p=1883#comment-260554 Another nice options would be:
– close all subsystems
– move tab to new window
– duplicate tab
– …
on a right-click menu on the tab itself – as any other great tool does!

]]>
By: Pietro Braglia https://blogs.mathworks.com/simulink/2013/02/13/i-cant-beleive-it-took-me-6-months-to-find-that/#comment-237760 Fri, 22 Feb 2019 07:56:06 +0000 https://blogs.mathworks.com/seth/?p=1883#comment-237760 Thanks! This saved a lot of time!

]]>
By: Guy Rouleau https://blogs.mathworks.com/simulink/2013/02/13/i-cant-beleive-it-took-me-6-months-to-find-that/#comment-230304 Thu, 06 Dec 2018 14:44:34 +0000 https://blogs.mathworks.com/seth/?p=1883#comment-230304 @Apwiat: There is currently no way to open multiple models in the same window. We are working on that for a future release.

]]>
By: Apwiat Pitaksin https://blogs.mathworks.com/simulink/2013/02/13/i-cant-beleive-it-took-me-6-months-to-find-that/#comment-230262 Thu, 06 Dec 2018 04:48:57 +0000 https://blogs.mathworks.com/seth/?p=1883#comment-230262 Thank you so much for your sharing, Guy Rouleau. However, I’m wondering how to open multiple models in one windows? It’s always turn up the new windows when I open the new model.

]]>
By: Michael K. https://blogs.mathworks.com/simulink/2013/02/13/i-cant-beleive-it-took-me-6-months-to-find-that/#comment-85025 Mon, 29 Sep 2014 08:34:18 +0000 https://blogs.mathworks.com/seth/?p=1883#comment-85025 Thank you very much, Guy. That was exactly what I’m looking for!

After Variants I added the line

'IncludeCommented', 'on', ...

because I have a few commented subsystems which are sometimes opened as tabs.

I need to close all tabs, or else my compiler throws an error if the root model isn’t the only tab. Thereafter I reopen the tabs which where saved in blks.

Best regards, Michael

]]>
By: Guy Rouleau https://blogs.mathworks.com/simulink/2013/02/13/i-cant-beleive-it-took-me-6-months-to-find-that/#comment-84300 Thu, 25 Sep 2014 14:47:29 +0000 https://blogs.mathworks.com/seth/?p=1883#comment-84300 @Michael K: To find all the open subsystem, you can use find_system:

blks = find_system(bdroot,'LookUnderMasks','all',...
    'FollowLinks','on',...
    'Variants','AllVariants',...
    'blocktype','SubSystem',...
    'open','on')

Then close them all using close_system:

cellfun(@close_system,blks)
]]>
By: Michael K. https://blogs.mathworks.com/simulink/2013/02/13/i-cant-beleive-it-took-me-6-months-to-find-that/#comment-84240 Thu, 25 Sep 2014 10:31:22 +0000 https://blogs.mathworks.com/seth/?p=1883#comment-84240 Thanks for this tip.

At the moment I’m looking for a way to do this programmatically i.e. close all tabs but the one with the root model. At least there must be a way to get all handles to all open tabs, exclude the root model and close them.
Do you know of any way to do this?

]]>
By: Arun https://blogs.mathworks.com/simulink/2013/02/13/i-cant-beleive-it-took-me-6-months-to-find-that/#comment-54939 Fri, 14 Feb 2014 00:22:41 +0000 https://blogs.mathworks.com/seth/?p=1883#comment-54939 Is there a command to close all the tabs?

]]>
By: Phil Taylor https://blogs.mathworks.com/simulink/2013/02/13/i-cant-beleive-it-took-me-6-months-to-find-that/#comment-25009 Tue, 16 Apr 2013 14:36:28 +0000 https://blogs.mathworks.com/seth/?p=1883#comment-25009  
One I’ve just discovered…

I can’t drag or right-click a tab and open it in a separate window (think of a two monitor desktop). I have to go back to the parent, right-click on the block, and from there I can choose to open in a new window. I know it can be done from the Model Browser but I find that left pane to obtrusive it wastes too much space. Mentally maintaining the hierarchical link between the tree-view and the diagram just doesn’t work for me, and the same applies with the ‘breadcrumbs’ Explorer-style address bar above the diagram.

Basically, think how Chrome’s tabs behave…
 

]]>
By: Guy Rouleau https://blogs.mathworks.com/simulink/2013/02/13/i-cant-beleive-it-took-me-6-months-to-find-that/#comment-24176 Thu, 04 Apr 2013 21:24:06 +0000 https://blogs.mathworks.com/seth/?p=1883#comment-24176 @Aditya: Those are great suggestions, I will definitely pass to our development team.

]]>