Matlab default font monospace is not a wise choice

조회 수: 37 (최근 30일)
Wan Ji
Wan Ji 2021년 10월 6일
답변: dpb 2021년 10월 6일
Did anyone encounter a problem when writing an m-script on matlab? The problem is that your naked eyes can't tell the number '1' from the lower-case letter 'l' with the default font 'monospace'.
  댓글 수: 1
John D'Errico
John D'Errico 2021년 10월 6일
You can always change the font if you don't like it.
Personally, I just try to be very careful to avoid problems of that sort, cognizant of issues with O and 0, with l and 1, etc.

댓글을 달려면 로그인하십시오.

채택된 답변

dpb 2021년 10월 6일
Can't say as it's been a problem for me, no...
But, you can change it to anything installed on your system -- go to
Preferences -->Fonts
and you'll get the list of available fonts and a display window of sample text from the Font-selection dialog. If you open a file in the Editor in a window you also can see, the APPLY button will show you the results in that edit session.
There are a number of other monospaced and sans serif fonts you can try -- proportional fonts may look pretty but are generally hard to code with since indenting doesn't stay uniform.
I've typically not been bothered enough to ever change it, one of the Lucida fonts is one I have used in the past.

추가 답변 (0개)


Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기


Community Treasure Hunt

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

Start Hunting!

Translated by