How can I modify programmatically model data design ?

1 vue (au cours des 30 derniers jours)
Adrien GOEPPEL
Adrien GOEPPEL le 24 Mai 2022
Commenté : Adrien GOEPPEL le 24 Mai 2022
Hello,
I'm designing a programmatical simulink generation and I use models into my simulink. However those models are linked to a Simulink Data Dictionnary and I would link them to the Base Workspace. Here you can find a Screen from the Model Explorer:
Is there any function or command to change Define In "Data Dictionnary" to "Base Workspace".
Thanks a lot for yur support !

Réponse acceptée

Fangjun Jiang
Fangjun Jiang le 24 Mai 2022
get_param('ModelName','DataDictionary')
set it to be empty will force to use base workspace
set_param('ModelName','DataDictionary','')
  1 commentaire
Adrien GOEPPEL
Adrien GOEPPEL le 24 Mai 2022
It works just fine ! Thank you for your fast answer !

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Programmatic Model Editing dans Help Center et File Exchange

Tags

Produits


Version

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by