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

2 Ansichten (letzte 30 Tage)
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)

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Programmatic Model Editing finden Sie in Help Center und File Exchange

Produkte


Version

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by