simulink can't select add icon image

조회 수: 17 (최근 30일)
Matteo
Matteo 2023년 8월 11일
답변: Andreas Viborg 2024년 2월 1일
Trying to change the icon on a block but I am not able to select "add icon image".
Do I need to change any settings?
Btw:I am using Matlab online.
  댓글 수: 1
Abderrahim. B
Abderrahim. B 2023년 8월 11일
Hi! is this a Simulink buildin block or you created it ?

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

답변 (2개)

Suman Sahu
Suman Sahu 2023년 8월 25일
Hi Matteo,
There is another way to add icon to the blocks if you are unable to select the “Add Icon Image” option. You can follow these steps:
  1. Go to “Edit Mask” or “Create Mask” option.
  2. In the Mask Editor, go to the “Icon” tab.
  3. From the side bar on the left, select “image()” from Icon Drawing Commands.
  4. Provide the image file path as the parameter in the “image()” function.
  5. Click “Save Mask”.
Please note that the path of the image file is relative to your MATLAB drive home. You cannot select image file from your local machine.
You should be able to see the selected image as block icon.

Andreas Viborg
Andreas Viborg 2024년 2월 1일
This seems to happen with 2021b. Here is a workaround I found:
  1. Go to "Edit mask"
  2. Select "Unmask" in the lower left corner, your mask will be deleted so you may want to store mask data somehow.
  3. Now the "Add Icon Image..." should be enabled

카테고리

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

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by