Font size of command window is much larger than the one in Editor

24 visualizaciones (últimos 30 días)
Daigo
Daigo el 23 de Mayo de 2024
Comentada: Cris LaPierre el 23 de Oct. de 2025 a las 20:34
I recently started using MATLAB R2024a on my new MacBook. Strangely, the font size of command window is much larger than the one in the Editor. The image below shows the screenshot of my MATLAB:
I found a relevant document in Zoom and Change Desktop Fonts - MATLAB & Simulink (mathworks.com) about the font size:
"By default, the code font is set to monospaced to preserve vertical alignment. When the font is set to monospaced, the actual displayed font in the Editor is different than the font displayed in the Command Window and Command History. This is because monospaced is a logical font, not a physical font. To avoid this discrepancy, specify the font name as a physical font, for example, Courier New."
Following the recommendation, I changed my font to Courier New, but it didn't solve the problem. I also suspected that it may have something to do with the MATRLAB color schemer I'm using, so I turned it off and restarted MATLAB, but it didn't solve the problem either. Could anyone give me some advice?

Respuesta aceptada

Cris LaPierre
Cris LaPierre el 23 de Mayo de 2024
You can Zoom in and out in the editor. Try switching to the View tab and use the Zoom In or Zoom Out options to adjust the editor zoom level, or click Reset Zoom to return to 100%.
You can also use ctrl+(scroll wheel) to zoom in and out in the Editor.
  3 comentarios
AnaelG
AnaelG el 23 de Oct. de 2025 a las 20:18
OMG! Same as @Daigo.
Heavy Matlab user here. My Editor window has been set to a different zoom for years and I've been juggling with the custom appearance font sizes for the editor window to match the size...
There's gotta be a better way to do this. Or some obvious display of the zoom difference.
Cris LaPierre
Cris LaPierre el 23 de Oct. de 2025 a las 20:34
The editor zoom is displayed in the bottom right of your MATLAB window

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Data Exploration en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by