Effacer les filtres
Effacer les filtres

Set default font settings for Simulink annotation (comments)

1 vue (au cours des 30 derniers jours)
Dimitri
Dimitri le 10 Oct 2023
Modifié(e) : Fangjun Jiang le 14 Déc 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 commentaires
Dimitri
Dimitri le 10 Oct 2023
Déplacé(e) : Dyuman Joshi le 26 Oct 2023
Hi Joshi!
Thanks, but I meen the annotation for model and not for charts: https://www.mathworks.com/help/simulink/ug/annotate-models.html
Do you know how can I handler all the annotations of model?
Dyuman Joshi
Dyuman Joshi le 10 Oct 2023
Déplacé(e) : Dyuman Joshi le 26 Oct 2023
Ah, okay. I should have noticed the product mentioned as "Simulink".
I will get back to you on this soon.

Connectez-vous pour commenter.

Réponse acceptée

Fangjun Jiang
Fangjun Jiang le 14 Déc 2023
Modifié(e) : Fangjun Jiang le 14 Déc 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'))

Plus de réponses (0)

Catégories

En savoir plus sur Interactive Model Editing dans Help Center et File Exchange

Produits


Version

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by