Simulink custom (non rectangular) Block Shapes

34 次查看(过去 30 天)
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
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 个评论
Florian Rössing
Florian Rössing 2021-8-24
How do I use those Icon drawing comands? This sound helpful

请先登录,再进行评论。

更多回答(1 个)

Florian Rössing
Florian Rössing 2021-8-24
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 :-)
Florian Rössing
Florian Rössing 2021-8-24
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)

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Subsystems 的更多信息

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by