How to collapse a subsystem in Simulink

Once I create a Subsystem in Simulink, I can expand it. But once expanded, I cannot collapse it again. Please let me know how to do this.

4 Comments

Please specify what is "expand" and "collapse".
Please see the below screenshots. First screenshot shows the collapsed subsystem. Second screenshot has the same subsystem expanded. Once I expand the subsystem, I cannot find any option to revert it back to the collapsed state.
Use Model Browser. It is like a file/folder hierarchy for model, you can click anywhere to view it.

Sign in to comment.

 Accepted Answer

Jon
Jon on 2 May 2022
Edited: Jon on 2 May 2022
Just go back up one level to the parent

6 Comments

That's not exactly what I meant. Please see my reply to Fangjun Jiang.
I assume that to expand the subsystem you did something like.
  1. Right click on subsystem
  2. Select Subsystem and Model Reference
  3. Select Expand Subsystem
Then to collapse it again:
  1. Right click on the expanded subsystem
  2. Select Create Subsystem from Area
I thought that might create a second subsystem.
Thanks. I will follow your instructions.
After reading this, I see that expanding a subsystem is useful if you really want to flatten (reduce the levels of heirarchy) in your model, but it is not just a means to view what is inside of the subsystem. It really makes changes to how your model is wired, eliminating ports and other details.
If you just want to see what is in the subsystem and not change anything then just double click on the subsystem and a window will open showing you the details of what is inside the subsystem. Then when you want to go back just click the upper arrow (shown in my first post).
Understood. Thanks.
Hi, if this answered your question please accept the answer. That will take it off of the list of unanswered questions, and also will let others with a similar question know that an answer is already available.

Sign in to comment.

More Answers (0)

Products

Release

R2021b

Tags

Asked:

on 2 May 2022

Commented:

Jon
on 10 May 2022

Community Treasure Hunt

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

Start Hunting!