フィルターのクリア

model reference variants control using block mask parameter

5 ビュー (過去 30 日間)
Andrei
Andrei 2016 年 1 月 12 日
回答済み: Dinesh 2024 年 7 月 3 日 7:06
Dear all,
is there a way to implement model reference variants where the variant selection is controlled by a mask parameter rather than using parameter that is defined in the base workspace. I'd like to define a parameter structure in the workspace but passed to the model reference block in a mask and use values from that structure to drive which model variant is chosen.
Example Two models are defined to represent a physical phenomena, i.e. an idealized and a detailed one. In the base workspace a parameter structure is defined as follows:
paramStruct.physModel_A.isIdealized = true; % presumes that model is idealized
paramStruct.physModel_B.isIdealized = false: % presumes that model is detailed
The goal is to use the element of the parameter structure to control the variant selection of the model reference. So far, model reference variants works if the condition for the variant selection is explicitly defined as parameter (and not as a part of a structure) in the base workspace (e.g. isIdealized = true).
Many thanks in advance.

回答 (1 件)

Dinesh
Dinesh 2024 年 7 月 3 日 7:06

カテゴリ

Help Center および File ExchangeComponent-Based Modeling についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by