How can I save the text in the model workspace variable description?
18 views (last 30 days)
Show older comments
Adriel
on 1 Aug 2024 at 18:15
Commented: Adriel
on 2 Aug 2024 at 14:55
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)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1745041/image.png)
0 Comments
Accepted Answer
Fangjun Jiang
on 1 Aug 2024 at 19:11
mw=get_param(bdroot,'ModelWorkspace');
a=mw.getVariable('Param');
>> s=get(a,'Description')
s =
'abc'
More Answers (0)
See Also
Categories
Find more on Interactive Model Editing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!