Regarding sldiagnostics function usage and results
2 ビュー (過去 30 日間)
古いコメントを表示
I wanted to know the number of blocks by category present in my model. I used the following command to generate a report myReport = sldiagnostics('model_mdl', 'CountBlocks') then in order to know the paths for all the Selector blocks I used the following command find_system(gcs,'LookUnderMasks','on','blocktype','Selector') .The number of paths generated was not equal to the number of blocks showed in my report. So I wanted to know if what I was doing is right or is there another way to get the paths corresponding to the number of the blocks listed by the sldiagnostics function? I have attached the pictures for reference,
The report shows 67 selector blocks are present in the model,
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/665500/image.png)
The picture below shows the paths generated for selector block which is just 3x1 cell array.![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/665505/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/665505/image.png)
I wanted to know why is there a difference in the total number of blocks and the number of paths generated for the blocks matching?
0 件のコメント
採用された回答
Monika Jaskolka
2021 年 7 月 4 日
編集済み: Monika Jaskolka
2021 年 7 月 5 日
find_system(gcs, 'LookUnderMasks', 'on', 'FollowLinks', 'on', 'blocktype', 'Selector')
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Configure and View Diagnostics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!