Simulink is too small on my high DPI display in Linux

124 visualizzazioni (ultimi 30 giorni)
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 Commento
Altaïr
Altaïr il 8 Lug 2025
Modificato: Altaïr il 8 Lug 2025
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.

Accedi per commentare.

Risposta accettata

Ruchika Parag
Ruchika Parag il 7 Lug 2025
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!

Più risposte (0)

Categorie

Scopri di più su Simulink Environment Customization in Help Center e File Exchange

Prodotti


Release

R2025a

Community Treasure Hunt

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

Start Hunting!

Translated by