How to programmatically add images in masks?
8 次查看(过去 30 天)
显示 更早的评论
How to programmatically add images in masks???
Use the script to achieve the following functions
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1443512/image.png)
Can this function “Simulink.Mask.convertToInternalImage” achieve this functionality? Can you provide an example?
Thanks!!!
0 个评论
回答(1 个)
Rasmita
2023-8-7
Hi,
It is my understanding that, you are trying to add images as icons on a Simulink mask programmatically.
To achieve this, you can use following line of code:
set_param(gcb,'MaskDisplay','image(''image1.jpg'')');
For more information, refer to below documentation link:
Hope this helps!
Regards,
Rasmita
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Create Block Masks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!