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

3 次查看(过去 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)

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Programmatic Model Editing 的更多信息

产品


版本

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by