xml Error when renaming a File or Folder in a Project

When renaming a folder or a file in the project pane for an opened project, I receive the following error:
The exact same error is yielded for any renaming attempt of any file or folder in the project, but only in this specific project

回答(1 个)

Dear @Brad,
This issue usually happens when MATLAB’s preferences or path become corrupted. You can fix it by clearing the MATLAB preferences and resetting the path. Follow the steps below based on your operating system.
Windows
1. Go to your Application Data folder:
Windows 2000/XP:
C:\Documents and Settings\<username>\Application Data\
Windows Vista and later:
C:\Users\<username>\AppData\Roaming
Note: This folder is hidden by default.
2. Open the MathWorks\MATLAB folder inside Application Data and delete the folder for your MATLAB release (e.g., R2024b).
Do not delete any folder ending with “_licenses”.
3. Restart MATLAB. A new preferences folder will be created automatically.
Linux / Unix / macOS
1. Open a terminal and run:
cd ~/.matlab
2. Delete the folder for your MATLAB version. For example:
rm -rf R2024b
3. Restart MATLAB, and it will rebuild the preferences.
If the issue continues, reset MATLAB’s path. Run the following commands inside MATLAB:
restoredefaultpath
savepath
rehash toolboxcache
After running these, restart MATLAB so the changes take effect.
Hope this helps!

1 个评论

Thank you for taking time to respond. Unfortunately, this did not resolve the issue

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Startup and Shutdown 的更多信息

产品

版本

R2024b

提问:

2026-2-13,0:18

评论:

2026-2-20,15:30

Community Treasure Hunt

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

Start Hunting!

Translated by