How to programmatically add images in masks?
조회 수: 13 (최근 30일)
이전 댓글 표시
How to programmatically add images in masks???
Use the script to achieve the following functions

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에서 Author Block Masks에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!