How to find number of blocks in a simulink model

20 ビュー (過去 30 日間)
Manpreet
Manpreet 2011 年 7 月 28 日
編集済み: vijay reddy 2021 年 9 月 9 日
I have large size simulink models.i want to find number of blocks used in that simulink model.also tell can be find the following information about simulink model: Number of connections, used block types, maximum size of connected components, number of connected components, number of edges and nodes plz help.its urgent

採用された回答

Kaustubha Govind
Kaustubha Govind 2011 年 7 月 28 日
  2 件のコメント
Kaustubha Govind
Kaustubha Govind 2011 年 8 月 3 日
Manpreet asked:
When i giving same simulink model to MATLAB 7.1 and MATLAB 7.8.0,then "sldiagnostics" command returns differnt number of blocks as answer
Kaustubha Govind
Kaustubha Govind 2011 年 8 月 3 日
I'm not sure why this could be, but you could perform a comparison of the list of blocks between the two release and see what the additional blocks are. This could provide a clue.

サインインしてコメントする。

その他の回答 (1 件)

vijay reddy
vijay reddy 2021 年 9 月 7 日
編集済み: vijay reddy 2021 年 9 月 9 日
To find Number of each type of block, Number of each type of Stateflow® object and Number of states, outputs, inputs, and sample times of the root model of system 'sys' you can try this.
sldiagnostics('sys')
if you need number of each type of block only
sldiagnostics('sys','countblocks')

カテゴリ

Help Center および File ExchangeConfigure and View Diagnostics についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by