MATLAB Answers

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

12 views (last 30 days)
dinh tai
dinh tai on 5 May 2014
Commented: WANG Jason on 12 Oct 2019
I want to determine the number of inputs of block simulink. How to do it?

  0 Comments

Sign in to comment.

Accepted Answer

Chandrasekhar
Chandrasekhar on 6 May 2014
Edited: Chandrasekhar on 6 May 2014
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)

More Answers (1)

Nouran Adel
Nouran Adel on 24 Jun 2019
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 ?

  0 Comments

Sign in to comment.

Categories

Community Treasure Hunt

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

Start Hunting!