Change number of Ports on a Simulink Block

28 Ansichten (letzte 30 Tage)
John Fiaschetti
John Fiaschetti am 12 Aug. 2021
Beantwortet: Pavan Guntha am 16 Aug. 2021
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!

Antworten (1)

Pavan Guntha
Pavan Guntha am 16 Aug. 2021
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!

Kategorien

Mehr zu Create Large-Scale Model Components finden Sie in Help Center und File Exchange

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by