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

8 visualizaciones (últimos 30 días)
I want to determine the number of inputs of block simulink. How to do it?

Respuesta aceptada

Chandrasekhar
Chandrasekhar el 6 de Mayo de 2014
Editada: Chandrasekhar el 6 de Mayo de 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)

Más respuestas (1)

Nouran Adel
Nouran Adel el 24 de Jun. de 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 ?

Categorías

Más información sobre Modeling en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by