필터 지우기
필터 지우기

How can I create layered colored boxes in a Simulink Block Diagram?

조회 수: 26 (최근 30일)
I would like to annotate my model by highlighting parts with different colored boxes.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2009년 6월 27일
Colored boxes can be created in a Simulink model by placing an empty subsystem underneath an area.
Here is the answer on the layering subsystems issue. It is somewhat tricky. We order subsystems in alphabetical (ASCII) order, first by capital and then by lower-case. So the top subsystem starts with 'A' and the lowest one starts with 'z', and so on.
Here's a good method for making the layers:
1) Start with the top layer:
2) Make a new subsystem.
3) Title it 'z'.
4) Set the background color with right click -> Background Color
5) Hide the name with right-click -> Format -> Hide Name
6) Open the subsystem, delete the ports.
7) Right-click -> Mask Subsystem
8) In the mask drawing commands write "disp('')" - this will hide the simulink symbol.
9) Repeat for the next layer, calling it 'zz' and so on...
You can see the attached model as an example.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Subsystems에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by