Simulinkモデ​ルに含まれるブロック​の種類と、その個数の​一覧を表示することは​できますか。

24 ビュー (過去 30 日間)
MathWorks Support Team
MathWorks Support Team 2013 年 10 月 25 日
編集済み: MathWorks Support Team 2024 年 5 月 30 日
Simulinkモデルに含まれるブロックの種類と、その個数の一覧を表示することはできますか。

採用された回答

MathWorks Support Team
MathWorks Support Team 2024 年 5 月 30 日
編集済み: MathWorks Support Team 2024 年 5 月 30 日
sldiagnostics関数を次のように実行することで、モデルに含まれるブロックの種類とその個数の
一覧が表示されます。
>> sldiagnostics('モデル名','CountBlocks')
● 例:デモモデル(f14.mdl)のブロック一覧を表示する場合
>> sldiagnostics('f14','CountBlocks')
ans = Finished counting blocks in 'f14'.
Found 64 blocks.
NOTE: an 'M' next to a block type indicates that it is a
masked SubSystem or a masked S-Function and is included in the total block count under the SubSystem and S-Function block totals already. Embedded MATLAB, Truth Table, and Stateflow blocks are subtracted from the SubSystem and S-function totals, but not the hidden support blocks.
f14 Total blocks : 64
Constant : 1
Derivative : 2
Gain : 14
Inport : 9
Outport : 9
Product : 1
RandomNumber : 1
Scope : 3
SignalGenerator : 1
SubSystem : 6
Sum : 8
TransferFcn : 9
M Band-Limited White Noise. : 1
参考情報
● sldiagnostics関数のヘルプ

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange診断の設定と表示 についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!