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

2 vues (au cours des 30 derniers jours)
Kepler
Kepler le 10 Sep 2021
Commenté : Kepler le 17 Sep 2021
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.

Réponses (1)

stozaki
stozaki le 10 Sep 2021
Hello,
You can update the model block by using the following function.
Simulink.ModelReference.refresh
  1 commentaire
Kepler
Kepler le 17 Sep 2021
Thank you. But this function is provided since MALTAB 2020a, while mine is MALTAB 2016b..

Connectez-vous pour commenter.

Catégories

En savoir plus sur Modeling dans Help Center et File Exchange

Produits


Version

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by