How to programmatically change the command window text size?
이전 댓글 표시
It is of course possible to change the command window's text size by setting preferences, using the GUI. Is there a way to do the same programmatically by executing a MATLAB command or script? That would be much more convenient (I am calling MATLAB through engOpen() from C). At the moment MATLAB is using a 6-pixel font on my hi-dpi monitor (3840x2160), which is really inconvenient. The console has a menu bar, but it offers none of the functionality a normal OS cmd window has.
채택된 답변
추가 답변 (2개)
Voss
2024년 7월 18일
s = settings;
s.matlab.fonts.codefont.Size.PersonalValue = 16;
댓글 수: 4
marcel hendrix
2024년 7월 18일
Voss
2024년 7월 18일
Well that's a bummer.
VBBV
2024년 7월 18일
@marcel hendrix, it seems to work fine. Here's the difference you can notice if the change in fontsize settings is done from 10 to 16


marcel hendrix
2024년 7월 18일
Fangjun Jiang
2024년 7월 18일
0 개 추천
댓글 수: 2
marcel hendrix
2024년 7월 18일
Fangjun Jiang
2024년 7월 18일
In that case, you might want to try saving a pre-set settings to a folder and re-load it.
카테고리
도움말 센터 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
