- Go to the Home tab
- Click on the Set Path button.
- Scroll down the list of folders until you see the weird folder that it complains about in your Local/Temp folder.
- Click on it and click the Remove button.
- Click on the Save button.
- Click on the Close button
- Shut down MATLAB
- Restart MATLAB
Error message: Name is nonexistent or not a directory
19 views (last 30 days)
Image Analyst on 6 Jun 2020
I've seen this before. I'm not sure how or why it gets there. Maybe if I have to kill off MATLAB with the task manager??? Anyway, to get rid of it,
You should no longer have that warning message as MATLAB is starting up.
More Answers (2)
Walter Roberson on 6 Jun 2020
The next step is to ignore it. ;)
The directory listed has to do with the location that matlab code extracted from live scripts is put temporarily. (Live Scripts are not executed directly: they are markup files that in places contain code, and matlab copies the code sections into a m file to execute)
MATLAB automatically creates a directory for this live script purpose and adds it to the path and saves the path. But it is a temporary directory and the operating system can delete it, so it might not exist next time you start matlab. The path loading process does not know that it is ok for the directory to not exist so it gives a warning. MATLAB automatically creates a new directory when it needs to.
So this is a cosmetic problem rather than a failure of some kind.
Albert Bing on 17 Dec 2020
Here is my solution.
In your startup.m file, add several lines as following
editors=regexpi(paths, 'C:[^;]*Editor_[^;]*', 'match');%search C:\Users\<name>\*\Editor_*
If you don't have or don't know the startup.m file, just create a startup.m file in C:\Users\<your-name>\Documents\MATLAB.