Iterating a set of parallel blocks

Hi,
I have a set of simulink parallel structures which needs to be iterated 100 times. I have rpepeated 5 times in this picture. but i need to repeat this 1000 times. Is there any way of automating using loops?

Respuestas (1)

Abhipsa
Abhipsa el 12 de Jun. de 2026

0 votos

Hi @Anish,
From the image, it appears that the structure is cascaded, with each stage feeding the next through delay blocks and feedback paths. If your goal is to extend this pattern to hundreds or thousands of stages, manually duplicating the blocks may become difficult to maintain.
Depending on your requirements, you may consider:
  • Creating a reusable subsystem for a single stage and generating multiple instances programmatically using the Simulink API (add_block, add_line, etc.).
  • Implementing the algorithm in a MATLAB Function block using a for loop if the stages follow a common computational pattern.
I hope this helps :)

Categorías

Más información sobre Large-Scale Modeling en Centro de ayuda y File Exchange.

Productos

Versión

R2026a

Etiquetas

Preguntada:

el 20 de Mayo de 2026

Respondida:

el 12 de Jun. de 2026

Community Treasure Hunt

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

Start Hunting!

Translated by