Set default font settings for Simulink annotation (comments)
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Dimitri
am 10 Okt. 2023
Bearbeitet: Fangjun Jiang
am 14 Dez. 2023
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 Kommentare
Dyuman Joshi
am 10 Okt. 2023
Verschoben: Dyuman Joshi
am 26 Okt. 2023
Ah, okay. I should have noticed the product mentioned as "Simulink".
I will get back to you on this soon.
Akzeptierte Antwort
Fangjun Jiang
am 14 Dez. 2023
Bearbeitet: Fangjun Jiang
am 14 Dez. 2023
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'))
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Programmatic Model Editing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
