How to programmatically add images in masks?

12 ビュー (過去 30 日間)
意霖 郭
意霖 郭 2023 年 7 月 27 日
回答済み: Rasmita 2023 年 8 月 7 日
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!!!

回答 (1 件)

Rasmita
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

カテゴリ

Help Center および File ExchangeAuthor Block Masks についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by