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

8 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Modeling 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by