Change number of Ports on a Simulink Block

8 ビュー (過去 30 日間)
John Fiaschetti
John Fiaschetti 2021 年 8 月 12 日
回答済み: Pavan Guntha 2021 年 8 月 16 日
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!





Community Treasure Hunt

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

Start Hunting!

Translated by