How to programmatically change the command window text size?
14 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
marcel hendrix
le 18 Juil 2024
Commenté : marcel hendrix
le 29 Juil 2024
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.
0 commentaires
Réponse acceptée
marcel hendrix
le 21 Juil 2024
2 commentaires
VBBV
le 29 Juil 2024
Modifié(e) : VBBV
le 29 Juil 2024
@marcel hendrix, The answer provided in the link doesn't mention about how to change the command window text size programmatically but rather tells about the use of mouse scroll and Ctrl keys
I guess your question is about how to obtain it using a set of commands ( programmatically ) and @Voss answer using the commands works perfectly fine.
Plus de réponses (2)
Voss
le 18 Juil 2024
s = settings;
s.matlab.fonts.codefont.Size.PersonalValue = 16;
4 commentaires
VBBV
le 18 Juil 2024
@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![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1737121/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1737121/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1737126/image.png)
Fangjun Jiang
le 18 Juil 2024
2 commentaires
Fangjun Jiang
le 18 Juil 2024
In that case, you might want to try saving a pre-set settings to a folder and re-load it.
Voir également
Catégories
En savoir plus sur Startup and Shutdown dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!