Simulink; Without success while applying the 'Transpartent' option in the 'Edit Mask' functionality

조회 수: 1 (최근 30일)
Dear Reader
My problem: I have created a subsystem in Simulink and I am applying the Edit Mask functionality in order to load an image and to make it transpartent in order to see my input and output labels.
1) In the 'Edit Mask' editor I have selected in the command line 'image'. 2) I wrote the command 'image(imread('R.png'))' in the 'icon drawing commands' block. 3) I selected 'Transparent' in the 'Icon Transparency' option. 4) I selected 'Pixels' in the 'Icon Units'.
Unfortunaltely, the picture is not transparent and the pictures size is normalized and not as big as the original pixel size.
I am very pleased for any help. Kind regards Lukas

채택된 답변

Kaustubha Govind
Kaustubha Govind 2011년 2월 25일
Use the port_label function after drawing the image, to overlay port labels on top of the image. I'm not sure why the icon size is not being correctly applied - you could try contacting Tech Support to report it.

추가 답변 (1개)

Lukas
Lukas 2011년 2월 25일
Thank you very much. That was a good hint to resolve the labeling problem. But there is still the problem with the size.
  댓글 수: 1
Kaustubha Govind
Kaustubha Govind 2011년 2월 25일
Lukas: Like I said, I'm not sure how to resolve the size issue. If you don't find a solution on this forum, I'd recommend reporting it to Tech Support.

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

카테고리

Help CenterFile Exchange에서 Interactive Model Editing에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by