How can I save the text in the model workspace variable description?

1 回表示 (過去 30 日間)
Adriel
Adriel 2024 年 8 月 1 日
コメント済み: Adriel 2024 年 8 月 2 日
I want to save in as a string variable the text in the description of the simulink parameter that is in the simulink model workspace (image)

採用された回答

Fangjun Jiang
Fangjun Jiang 2024 年 8 月 1 日
mw=get_param(bdroot,'ModelWorkspace');
a=mw.getVariable('Param');
>> s=get(a,'Description')
s =
'abc'

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgrammatic Model Editing についてさらに検索

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by