Change number of Ports on a Simulink Block
24 views (last 30 days)
Show older comments
John Fiaschetti on 12 Aug 2021
Answered: Pavan Guntha on 16 Aug 2021
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!
Pavan Guntha on 16 Aug 2021
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!
Find more on Subsystems in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!