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

7 vues (au cours des 30 derniers jours)
I want to determine the number of inputs of block simulink. How to do it?

Réponse acceptée

Chandrasekhar
Chandrasekhar le 6 Mai 2014
Modifié(e) : Chandrasekhar le 6 Mai 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)

Plus de réponses (1)

Nouran Adel
Nouran Adel le 24 Juin 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 ?

Catégories

En savoir plus sur Modeling dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by