How to determine the number of inputs of block simulink from the command line?

13 ビュー (過去 30 日間)
dinh tai
dinh tai 2014 年 5 月 5 日
コメント済み: WANG Jason 2019 年 10 月 12 日
I want to determine the number of inputs of block simulink. How to do it?

採用された回答

Chandrasekhar
Chandrasekhar 2014 年 5 月 6 日
編集済み: Chandrasekhar 2014 年 5 月 6 日
click on the Simulink block/Subsystem for which you have to find the inputs and then use the following commands
a = get_param(gcb,'PortHandles');
length(a.Inport)

その他の回答 (1 件)

Nouran Adel
Nouran Adel 2019 年 6 月 24 日
and how can I determine the input itself of a simulink block ?? I mean how can I know which block is the input of the specified simulink block ?

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by