Set default font settings for Simulink annotation (comments)
3 次查看(过去 30 天)
显示 更早的评论
Hello,
For improving visibility of model, I would like to change the defaul font for all anotations: I would like to use Courrier New Black 14 pt. How can I do this programmatically?
3 个评论
Dyuman Joshi
2023-10-10
移动:Dyuman Joshi
2023-10-26
Ah, okay. I should have noticed the product mentioned as "Simulink".
I will get back to you on this soon.
采纳的回答
Fangjun Jiang
2023-12-14
编辑:Fangjun Jiang
2023-12-14
I don't think there is a way to pre-set the default font. But you can do a quick and easy post-processing like this. It will change all the annotations at once.
ano=find_system(ModelName,'FindAll','On','Type','Annotation')
set(ano,'FontName','Arial')
See doc page
web(fullfile(docroot, 'simulink/ug/create-an-annotation-programmatically.html?s_tid=doc_srchtitle'))
更多回答(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!