How to change the display scale factor of Simulink interface?
67 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Chunyu Xiao
el 20 de Mayo de 2023
Comentada: Chunyu Xiao
el 9 de Ag. de 2023
Hello there,
I'm running MATLAB R2023a in Arch Linux with a HiDPI screen in 2880x1800 resolution. By default, the MATLAB interface looks small (fonts, icons, etc). This can be fixed by setting MATLAB display scale factor with the following command:
s = settings;s.matlab.desktop.DisplayScaleFactor;
s.matlab.desktop.DisplayScaleFactor.PersonalValue = 2;
After this, MATLAB interface looks perfect, shown as below:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1388999/image.png)
However, the Simulink interface becomes too large, as below:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1389004/image.png)
By resetting the MATLAB scale factor to 1, Simulink looks perfect but MATLAB too small.
Is there any solution to change the display scale factor of Simulink interface so that the interfaces of MATLAB ans Simulink are balanced?
0 comentarios
Respuesta aceptada
Alex
el 8 de Ag. de 2023
It seems that Simulink is reading the environment variable QT_SCREEN_SCALE_FACTORS set by KDE and scaling according to it. But it is also scaled with s.matlab.desktop.DisplayScaleFactor.PersonalValue, therefore it is scaled twice. Unsetting this environment variable in a wrapper script when starting MATLAB makes both MATLAB and Simulink scale normally.
Más respuestas (1)
Yoga
el 29 de Jul. de 2023
The issue is present in the R2023a version of MATLAB.
Unfortunately, there is no workaround for this issue.
The framework of Simulink doesn't handle the DPI scale factors well.
You might want to reset the MATLAB scale factor to 1 every time you use Simulink and switch back for MATLAB as far as the R2023a version is concerned.
0 comentarios
Ver también
Categorías
Más información sobre Interactive Model Editing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!