How to get the available annotation list of a Simulink block from command line
6 次查看(过去 30 天)
显示 更早的评论
I'd like to get the list of available annotation for a specific block from script in order to then programmatically set them with the function:
set_param(gcb,'AttributesFormatString','MyAnnotation = %<MyToken>');
I'm already able to get the parameters of the block with
blockParam = get_param(gcb,'ObjectParameters');
Unfortunately the resulting list includes more properties than what I'm looking for.
To be specific, I'd like to get the exact same list of properties shown in the Block Annotation tab, under the Block Properties window (right click on block, Properties...):
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/238220/image.png)
I'm pretty sure is a matter on knowing the specific object property field to look for (obj= get_param(gcb,'Object');).
Thanks,
Andrea
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!