Change system mask "Icon" section programmatically
이전 댓글 표시
Hi,
I'm trying to create the mask of a model programmatically and edit the "Icon" section, for the moment I have the following script:

I want the script to edit this part of the mask:

I can't find anything in the documentation on how to do that.
Is it possible ?
Thanks
댓글 수: 5
Aabha
2025년 6월 13일
You could try using the following command to modify the icon section of the mask:
set_param(blockHandle, 'MaskDisplay', 'plot(0:1)');
N/A
2025년 6월 13일
Aabha
2025년 6월 13일
The 'blockHandle' needs to be the handle of the block that you are trying to modify. In this case, since you want to modify the icon for a mask, you can use the following command to get the block handle value:
handle = get_param(blockPath, 'Handle');
Please ensure that the blockPath is the full path of the mask (i.e., including the model name or parent subsystem) that you are trying to modify.
N/A
2025년 6월 13일
N/A
2025년 6월 13일
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Subsystems에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
