필터 지우기
필터 지우기

Error message: Name is nonexistent or not a directory

조회 수: 18 (최근 30일)
alpedhuez
alpedhuez 2020년 6월 6일
댓글: GA 2021년 2월 14일
When I opened Matlab on Windows 10, I got an error message
Warning: Name is nonexistent or not a directory: C:\Users\(username)\AppData\Local\Temp\Editor_vxdxq
What would be the next step?

채택된 답변

Image Analyst
Image Analyst 2020년 6월 6일
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,
  1. Go to the Home tab
  2. Click on the Set Path button.
  3. Scroll down the list of folders until you see the weird folder that it complains about in your Local/Temp folder.
  4. Click on it and click the Remove button.
  5. Click on the Save button.
  6. Click on the Close button
  7. Shut down MATLAB
  8. Restart MATLAB
You should no longer have that warning message as MATLAB is starting up.
  댓글 수: 4
alpedhuez
alpedhuez 2020년 6월 7일
Let me work on it.
GA
GA 2021년 2월 14일
Thank you, it worked for me

댓글을 달려면 로그인하십시오.

추가 답변 (2개)

Walter Roberson
Walter Roberson 2020년 6월 6일
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
Albert Bing 2020년 12월 17일
Here is my solution.
In your startup.m file, add several lines as following
paths=path;
editors=regexpi(paths, 'C:[^;]*Editor_[^;]*', 'match');%search C:\Users\<name>\*\Editor_*
for i=1:numel(editors)
rmpath(editors{i});
end
clear;
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.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by