This doc page Dynamic Masked Subsystem is probably what you're looking for. Not sure if the number of inputs or outputs can be changed dynamically this way, but definitely can change things inside the subsystem.
Dynamically generate a simulink block
2 次查看(过去 30 天)
显示 更早的评论
I was wondering if it was possible to dynamically generate a Simulink block (subsystem with mask) based on the parameters entered: for example being able to decide how many inputs/outputs it has by inserting the number as a parameter (as happens for the mux and demux blocks) but also by changing how the subsystem is made internally.
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Subsystems 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!