How can I save the text in the model workspace variable description?
18 次查看(过去 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)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1745041/image.png)
0 个评论
采纳的回答
Fangjun Jiang
2024-8-1,19:11
mw=get_param(bdroot,'ModelWorkspace');
a=mw.getVariable('Param');
>> s=get(a,'Description')
s =
'abc'
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interactive Model Editing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!