Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
How can I migrate a model reference hierarchy to use a common data dictionary programatically?
조회 수: 1 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
답변 (1개)
Mark McBroom
2018년 6월 28일
편집: Mark McBroom
2018년 6월 28일
use
mdlList = find_mdlrefs(modelName);
for i=1:numel(mdlList)
set_param(mdlList{i},'DataDictionary',dictionaryName);
end
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!