Editor settings are not saved on kubuntu

1 次查看(过去 30 天)
Hi,
I'm having an issue that when I change any editor setting, the change is no longer applied when I reopen Matlab.
For instance, when I run matlab schemer to change the editor to a dark-mode color scheme, the changes only work for the current session. The live script popups reappear at each startup as well for instance.
I'm running R2022b on kubuntu 22.04, kernel 5.15 fwiw.
Any help is appreciated!

回答(1 个)

Dhruv
Dhruv 2023-3-21
To resolve this issue, try the following steps:
  1. Make sure that the write permissions for the MATLAB preferences directory is present, one can do this by running the command prefdir in the command window. The output should be the path to the preferences directory. If not, change the permissions using the chmod command.
  2. Make sure MATLAB is set to save preferences when it exits. Check this by going to Preferences -> MATLAB -> General -> Confirm exit. Make sure the "Save changes to layout and settings on exit" option is selected.
  3. Try resetting the MATLAB preferences to its default values. One can do this by running the command matlabprefs reset in the command window. This will reset all preferences to their default values, as a result any previously set custom preferences may get deleted.
  4. If none of the above steps work, try manually editing the MATLAB preferences file. The preferences file is located in the preferences directory and is called "matlab.prf". Open this file in a text editor and make changes to the preferences directly.
I hope this helps. Let me know if you have any further questions, I’ll be happy to assist you.

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

产品


版本

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by