Copy simulink block programmatically

Hey,
I have a very simple problem for which I am not able to find an answer.
How exactly do I copy a block in Simulink programmatically? So basically ctrl+c, ctrl+v but programmatically?
add_block alone is not enough as I want all the settings to be the same.
Thanks!

Respuestas (1)

Angelo Yeo
Angelo Yeo el 20 de Jul. de 2023

0 votos

It's always better when you provide a sample models and explain what you want to do with them.

Categorías

Más información sobre Simulink en Centro de ayuda y File Exchange.

Productos

Versión

R2021a

Etiquetas

Preguntada:

el 19 de Jul. de 2023

Respondida:

el 20 de Jul. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by