How to programmatically adjust the font size of the editor and command window?

9 ビュー (過去 30 日間)
Hi all,
I am using a lot Matlab both with the small screen of my laptop and with my large 34" external screen. Is there a way to programmatically set the font size of the command window and of the editor on the basis of the desktop resolution?
Thanks.
Best regards,
Michele

採用された回答

Athul Prakash
Athul Prakash 2020 年 1 月 27 日
Hi Michele,
You may use MATLAB's settings object to set and modify MATLAB preferences on the fly. Have a look at the doc linked below to get the hang of it.
I think you might be looking for the 'matlab.fonts.codefont.Size' setting.
Hope it helps!
  2 件のコメント
Serbring
Serbring 2020 年 1 月 29 日
Thank you. That is working beautifully. Which is the property which set the font size of the command window?
Juan Miguel Serrano Rodríguez
Juan Miguel Serrano Rodríguez 2021 年 9 月 22 日
s=settings; s.matlab.fonts.codefont.Size.PersonalValue = 8;
This is the setting I am using

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by