How to refresh selected model block via command line? (not the Ctrl+K function)

We can right click a Model Reference block and select Subsystem & Model Reference -> Refresh Selected Model Block.
I am wondering how to implement this action via command line.
Can you help me? Thanks.

Respuestas (1)

Hello,
You can update the model block by using the following function.
Simulink.ModelReference.refresh

1 comentario

Thank you. But this function is provided since MALTAB 2020a, while mine is MALTAB 2016b..

Iniciar sesión para comentar.

Categorías

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

Productos

Versión

R2016b

Preguntada:

el 10 de Sept. de 2021

Comentada:

el 17 de Sept. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by