Simulink custom (non rectangular) Block Shapes

Hey everyone,
we want to make our simulink models more visually appealing and useful for presentations. Hence I want to give blocks certain shapes. Like have a subsystem being triangular (alike the gain block) to visualize its functionalities.
How do I adjust the shape of a simulink subsystem block? As there are various blocks deviating from the rectangular standard, it musst be possible. But, much to my supprise i could not find any material on it using google.
Any help is appreciated. Many thanks in advance.

댓글 수: 1

sschumm
sschumm 2023년 11월 8일
Hi,
it is possible to create any shape by using the "Icon drawing commands" of the Mask Editor.
A triangular shape can be achieved by the commands shown below:

댓글을 달려면 로그인하십시오.

 채택된 답변

Jonas
Jonas 2021년 8월 24일
편집: Jonas 2021년 8월 24일

1 개 추천

I do not think it is possible to give subsystems an other shape than rectangular. It could conflict with the positioning of the in- and output ports.
What you can do, is use a mask image on a subsystem. Right click on a subsystem, and go to 'Mask' and then 'Add icon image...'. This way you can add your own symbols and images on the subsystem block.

댓글 수: 4

Thank you, I knew this feature existed, but am hesistant to use it yet. Its my retreat option so to say.
When I create a system with 1 output it should be no problem. So I think they should not limit us in this way and give us freedom of shape.
Avoid using image as block icon as it slows down model when every block has it.
Use icon drawing command in Mask to draw your shape. Make block frame "invisible" then you got it.
How do I use those Icon drawing comands? This sound helpful
Click "Help" button on "Icon and Ports" tab.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Florian Rössing
Florian Rössing 2021년 8월 24일

0 개 추천

All models are beautiful, useful and valuable regardless of origin shape or color, I demand freedom of choice! ;)

댓글 수: 2

Jonas
Jonas 2021년 8월 24일
Yes, that's why models with grey rectangular blocks are beautiful, useful and valuable as well :-)
Doesnt explain why I am limited to them ;) Regardless, I am for now working with your image approach until someone finds another way. Or the Matlab staff tells me it is not possible (and why so)

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Subsystems에 대해 자세히 알아보기

제품

릴리스

R2020b

질문:

2021년 8월 24일

댓글:

2023년 11월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by