simulink can't select add icon image
26 次查看(过去 30 天)
显示 更早的评论
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1455327/image.png)
回答(2 个)
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:
- Go to “Edit Mask” or “Create Mask” option.
- In the Mask Editor, go to the “Icon” tab.
- From the side bar on the left, select “image()” from Icon Drawing Commands.
- Provide the image file path as the parameter in the “image()” function.
- 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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1464742/image.jpeg)
0 个评论
Andreas Viborg
2024-2-1
This seems to happen with 2021b. Here is a workaround I found:
- Go to "Edit mask"
- Select "Unmask" in the lower left corner, your mask will be deleted so you may want to store mask data somehow.
- Now the "Add Icon Image..." should be enabled
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 String 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!