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 commentaires

Fangjun Jiang
Fangjun Jiang le 2 Mai 2022
Please specify what is "expand" and "collapse".
Ani R
Ani R le 3 Mai 2022
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.
Fangjun Jiang
Fangjun Jiang le 9 Mai 2022
Use Model Browser. It is like a file/folder hierarchy for model, you can click anywhere to view it.
Ani R
Ani R le 10 Mai 2022
Thanks.

Connectez-vous pour commenter.

 Réponse acceptée

Jon
Jon le 2 Mai 2022
Modifié(e) : Jon le 2 Mai 2022

1 vote

Just go back up one level to the parent

6 commentaires

Ani R
Ani R le 3 Mai 2022
That's not exactly what I meant. Please see my reply to Fangjun Jiang.
Jon
Jon le 3 Mai 2022
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
Ani R
Ani R le 4 Mai 2022
I thought that might create a second subsystem.
Thanks. I will follow your instructions.
Jon
Jon le 4 Mai 2022
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).
Ani R
Ani R le 4 Mai 2022
Understood. Thanks.
Jon
Jon le 10 Mai 2022
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.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Multicore Processor Targets dans Centre d'aide et File Exchange

Produits

Version

R2021b

Tags

Question posée :

le 2 Mai 2022

Commenté :

Jon
le 10 Mai 2022

Community Treasure Hunt

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

Start Hunting!

Translated by