Simulink is too small on my high DPI display in Linux
127 次查看(过去 30 天)
显示 更早的评论
Hello Everyone,
I am currently using MATLAB R2025a on Ubuntu 24.04 LTS with a high resolution display (2560x1900).
When I first launched MATLAB, the interface was very small. I tried running s.matlab.desktop.Zoom.PersonalValue = 150, which successfully scaled the MATLAB UI. However, Simulink remains too small, and adjusting the scaling value had no effect on it. What can I do to scale and fix the simulink ui ?
1 个评论
采纳的回答
Ruchika Parag
2025-7-7
s.matlab.desktop.Zoom.PersonalValue = 150;
successfully adjusts the scaling of the MATLAB desktop interface. However, this setting does not affect the Simulink user interface. Simulink scaling behavior on Linux is influenced by system-level DPI settings and Qt-related environment variables, which may override or bypass MATLAB-specific UI preferences.
To address this, it is recommended to unset any Qt scaling environment variables before launching MATLAB. This can be done by using a wrapper script as shown below:
#!/bin/bash
unset QT_SCREEN_SCALE_FACTORS
unset QT_AUTO_SCREEN_SCALE_FACTOR
unset QT_ENABLE_HIGHDPI_SCALING
xrandr --dpi 144 # Optional: match DPI to desired scale (e.g., 96 * 1.5)
matlab
Save this as a shell script (e.g., launch_matlab.sh), make it executable (chmod +x launch_matlab.sh), and use it to start MATLAB.
Unsetting these environment variables ensures that Simulink does not apply any additional scaling beyond what is controlled by the system DPI and MATLAB’s own settings. If needed, adjust the xrandr --dpi value to align with the intended display scale (for example, 144 DPI for 150% scaling on a system with a 96 DPI baseline).
In summary:
- The Zoom.PersonalValue setting controls MATLAB's desktop UI scale but does not affect Simulink on Linux.
- Simulink scaling is impacted by Qt environment variables.
- Unsetting these variables and optionally adjusting system DPI using xrandr can correct the display scale in Simulink.
This approach helps ensure consistent scaling across the MATLAB environment. Hope this helps!
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Environment Customization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!