How to enable block content preview in Simulink?

조회 수: 8 (최근 30일)
Nathan Berger
Nathan Berger 2022년 9월 30일
답변: Geetla Sindhu 2022년 10월 3일
I added an icon image to a Simulink block, and when I removed it the block was completely white. The option under format to enable content preview is greyed out. Is there any way I can turn content preview back on?
Thanks in advance!

채택된 답변

Geetla Sindhu
Geetla Sindhu 2022년 10월 3일
Hello Nathan,
I understand that when you are adding an icon image to the Simulink block and removing it, the block content preview is disabled.
In order to resolve this issue, you can try the workaround provided below:
  • Click Mask >> Add Mask Icon in the context menu to add an image to the Simulink block. A pop-up window will be generated as shown below.
  • Set the Icon Transparency to “Transparent” and select the image you want to add using the Browse option. Click on “OK”.
  • Once this is achieved, try to clear the image using Clear option. You can see that the original content of the block is restored.
Thank you.

추가 답변 (0개)

카테고리

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

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by