Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

How can I migrate a model reference hierarchy to use a common data dictionary programatically?

1 visualizzazione (ultimi 30 giorni)
How can I migrate a model reference hierarchy to use a common data dictionary programatically?
To migrate a single model I can use:set_param(modelName,'DataDictionary',dictionaryName);
To migrate a model reference hierarchy I can go to the Model Properties dialog box -> Data, and select Data Dictionary. A message will be shown asking if I want to migrate referenced variables from base workspace to the same dictionary. I’m looking for a way to do this programatically.
Thank you

Risposte (1)

Mark McBroom
Mark McBroom il 28 Giu 2018
Modificato: Mark McBroom il 28 Giu 2018
use
mdlList = find_mdlrefs(modelName);
for i=1:numel(mdlList)
set_param(mdlList{i},'DataDictionary',dictionaryName);
end

Questa domanda è chiusa.

Prodotti


Release

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by