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

조회 수: 12 (최근 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에서 Simulink Functions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by