How can I save the text in the model workspace variable description?
1 回表示 (過去 30 日間)
古いコメントを表示
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)

0 件のコメント
採用された回答
Fangjun Jiang
2024 年 8 月 1 日
mw=get_param(bdroot,'ModelWorkspace');
a=mw.getVariable('Param');
>> s=get(a,'Description')
s =
'abc'
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Programmatic Model Editing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!