Matlab HiDPI support

For several years and at least through Matlab R2019a, Matlab does not automatically adjust for HiDPI (2K, 4K, etc.) displays on Linux. HiDPI Matlab IDE resolution (icon and font size) can be manually corrected from within Matlab on any operating system.

Since Matlab R2018a, there is programmatic DPI access to get / set information on DPI as well as numerous other Matlab characteristics via settings.

Matlab DPI setting

S = settings;
S.matlab.desktop.DisplayScaleFactor

returns existing display scale like:

ActiveValue: 1
TemporaryValue: <no value>
PersonalValue: <no value>
FactoryValue: 1

set a new persistent DisplayScaleFactor that looks good to you by setting various values for:

S = settings;
S.matlab.desktop.DisplayScaleFactor.PersonalValue = 1.25  % bigger number, larger icons & text

restart Matlab for this to take effect.

Verify

Optionally, verify the settings has taken effect after Matlab restart by:

S = settings;
S.matlab.desktop.DisplayScaleFactor

resulting in:

     ActiveValue: 1.2500
  TemporaryValue: <no value>
   PersonalValue: 1.2500
    FactoryValue: 1

Notes

reference