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)
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!