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 个评论
Altaïr
Altaïr 2025-7-8
编辑:Altaïr 2025-7-8
According to the answers linked below, calibrating the system's DPI after adjusting MATLAB's scale factor can help achieve the desired scaling for Simulink:
For step-by-step instructions, please refer @Ruchika Parag's answer.

请先登录,再进行评论。

采纳的回答

Ruchika Parag
Ruchika Parag 2025-7-7
Hi @Ege, in MATLAB R2025a on Linux systems with high-resolution displays, setting:
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 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Environment Customization 的更多信息

产品


版本

R2025a

Community Treasure Hunt

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

Start Hunting!

Translated by