Simulink is too small on my high DPI display in Linux

조회 수: 146 (최근 30일)
Ege
Ege 2025년 7월 2일
편집: Altaïr 2025년 7월 8일
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