How can i share parameters between Model Variant blocks without the base workspace?

2 ビュー (過去 30 日間)
MHoerner
MHoerner 2018 年 4 月 24 日
回答済み: Meet 2024 年 10 月 11 日
I build up models using various Model Variant blocks. Each Model Variant block has its own Model Workspace where its parameters are stored. In some cases i need parameters from the Model Workspace of Model Variant block 'A' in the Model Workspace of Model Variant block 'B'. I only know the possibility of assigning model argument values, but then the parameter to share has to be in the base workspace. Is there an easy way sharing parameters between Model Workspaces ?

回答 (1 件)

Meet
Meet 2024 年 10 月 11 日
Hi MHoerner,
Each model has its own workspace, which is isolated and acts as a namespace for that model. Variables in a model workspace are not visible outside of the model.
You can refer to the documentation below for more information:
Hope this helps!!

カテゴリ

Help Center および File ExchangeVariant Hierarchical Components についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by