How to remove the MATLAB logo when masking a MATLAB Function block in Simulink?

조회 수: 15 (최근 30일)
Gianluca
Gianluca 2016년 10월 23일
편집: Damon Delorenzis 2018년 5월 30일
When I create a mask for a Matlab Function block in Simulink the Matlab logo remains, so it becomes very difficult to read anything written inside it. The only way I found to overcome this problem was to create a Subsystem containing the Matlab Function only... Is there any other, more elegant, way?

답변 (2개)

Mostafa
Mostafa 2016년 10월 24일
편집: Mostafa 2016년 10월 24일
Right Click on the Matlab function block -> Mask -> Edit Mask
In the 'Icon drawing commands' write
disp('MyFunc')
Press OK, and you're done.
  댓글 수: 2
Gianluca
Gianluca 2016년 10월 24일
Unfortunately that doesn't do the job, in the picture you see the result of your suggestion... Thanks for the effort by the way
Mostafa
Mostafa 2016년 10월 26일
편집: Mostafa 2016년 10월 26일
Just change the 'Icon transparency' of your mask from 'Transparent' to 'Opaque' (It's supposedly Opaque by default, but may be that's version dependent).

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


Damon Delorenzis
Damon Delorenzis 2018년 5월 30일
편집: Damon Delorenzis 2018년 5월 30일
Typing the following in the Icon drawing commands field will get rid of the logo and add port labels.
patch([0 1 1 0],[0 0 1 1],[1 1 1]); port_label('input',1,'x'); port_label('output',1,'y');

카테고리

Help CenterFile Exchange에서 Create Block Masks에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by