Set default font settings for Simulink annotation (comments)
조회 수: 8 (최근 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에서 Programmatic Model Editing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
