Matlab HiDPI support

For several years and including Matlab R2018b, Matlab does not automatically adjust for HiDPI (2K, 4K, etc.) displays. 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 access to correct this issue and get/set information on 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

Tags:

Categories:

Written by Michael Hirsch, Ph.D. //

Comments