Change number of Ports on a Simulink Block

조회 수: 14 (최근 30일)
John Fiaschetti
John Fiaschetti 2021년 8월 12일
답변: Pavan Guntha 2021년 8월 16일
Hi,
I want to create a library block for some matrix operations (not an embedded M function or S function) that can change the number of ports based on parameters in the mask. Is this possible? Thanks!

답변 (1개)

Pavan Guntha
Pavan Guntha 2021년 8월 16일
Hello John,
You could have a look at Dynamic masked subsystems documentation. There is an example on varying number of input ports based on the mask parameters.
Hope this helps!

카테고리

Help CenterFile Exchange에서 Subsystems에 대해 자세히 알아보기

태그

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by