Today screen resolution may vary from the "standard" 96 dpi to much larger values (>300).
Frequently users have to specify some scaling option at the os level in order to avoid too small characters on screen. In order to run safely java swing customisation (for example) it is necessary to take into account such scaling at run time. This small code answers this question and give some other useful display properties.
Alain Barraud (2020). getDisplayProperties (https://www.mathworks.com/matlabcentral/fileexchange/72748-getdisplayproperties), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!