Modified settings (PersonalValue) not persistent across sessions (display scaling)
이전 댓글 표시
I want to display Matlab on a high resolution 4K screen. I am using Matlab 2019b and my operating system is Linux Mint 18.3. With the default settings, the fonts and the icons are tiny, as described in question https://ch.mathworks.com/matlabcentral/answers/406956-does-matlab-support-high-dpi-screens-on-linux. I have changed the system settings of my OS (fonts and display scaling), which a lot of other programs obey, but Matlab does not.
I have tried to solve the issue using the answer
i.e.,
>> s = settings;s.matlab.desktop.DisplayScaleFactor
>> s.matlab.desktop.DisplayScaleFactor.PersonalValue = 1.5
However, the change to
s.matlab.desktop.DisplayScaleFactor.PersonalValue
does not persist across sessions: After restarting Matlab, PersonalValue 's value is undefined again.
I read in https://ch.mathworks.com/help/matlab/matlab_external/access-and-modify-settings.html that changes to PersonalValue are saved to the preferences folder, which in my case (according to prefdir) is ~/.matlab/R2019b. I have read and write access to this folder.
How can I change the DisplayScaleFactor permanently? Why are the settings not saved?
(Similarly, changing the Matlab font sizes in Preferences -> Fonts is not persistent for the Desktop code font; however for the Desktop text font, it is.)
채택된 답변
추가 답변 (2개)
Harsha Priya Daggubati
2020년 3월 18일
0 개 추천
Hi,
One possible workaround for your problem would be to use 'startup.m' and run the commands to change the DisplayScaleFactor. To identify the startup folder, type pwd at the command line immediately after starting MATLAB and before typing any other commands. Refer to the following link for more detailed instructions.
Hope this helps!
Harsha Priya Daggubati
2020년 3월 18일
0 개 추천
Hi,
I think it is advisable to restart MATLAB whenever the preferences are changed. I could assume the above based on the discussion in the following thread:
카테고리
도움말 센터 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!