xml Error when renaming a File or Folder in a Project
18 views (last 30 days)
Show older comments
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
0 Comments
Answers (1)
Tridib
16 minutes ago
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!
0 Comments
See Also
Categories
Find more on Project File Management in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!