MATLAB Answers

find mask model in Simulink

15 ビュー (過去 30 日間)
shengchang gao
shengchang gao 2019 年 6 月 26 日
コメント済み: shengchang gao 2019 年 6 月 27 日
Hi,
I have a problem that I want to find the Mask block inside of the existing model. I try to use find_system('System','BlockType','name_of_mask') to get the name of masked blocks. However,it return empty cell for me. What command should I use to find the masked blocks ?
Thanks!

  0 件のコメント

サインイン to comment.

採用された回答

Shameer Parmar
Shameer Parmar 2019 年 6 月 26 日
編集済み: Shameer Parmar 2019 年 6 月 26 日
Hello Shengchang,
You can use one of following command in your code... (Open your model and run this command and see the results)
find_system(bdroot,'LookUnderMasks','All','FindAll','on','Mask','on','Type','block');
find_system(bdroot,'LookUnderMasks','All','FindAll','on','Mask','on','Type','block','BlockType','SubSystem');
find_system(bdroot,'LookUnderMasks','All','FindAll','on','Mask','on','Type','block','BlockType','Inport');
You can put different filters like 'BlockType', 'MaskType', etc etc and achive what you want..
I hope this will help you.. Thanksss...

  1 件のコメント

shengchang gao
shengchang gao 2019 年 6 月 27 日
Thank you! That helps a lot!

サインイン to comment.

その他の回答 (0 件)

サインイン してこの質問に回答します。


Translated by