File does not exist error

조회 수: 11 (최근 30일)
James Ankrah
James Ankrah 2019년 5월 11일
댓글: Walter Roberson 2019년 5월 11일
I would please like to know what to do when I am trying to open an m-file and it displays the following message:
Moreover when I then try to open the file directly in the folder it displays this messages
Error using cd
  댓글 수: 4
James Ankrah
James Ankrah 2019년 5월 11일
The f drive is disk space on my 64 bit windows 10 operating laptop, i have a partitioned harddrive.
In the first case I clicked the open option on the home tab proceeded to browse through the files so I could locate the m file and when I clicked to open the file it produced this image
In the second case you are correct I did use the windows file explorer to directly go to the location of the file to click to open it but when I did it again gave me an error this time saying
Error using cd
Cannot CD to F:\4th year\2nd semester\\ (Directory access failure).
Error in tempdir (line 31)
tmp_dir = cd(curr_dir);
Error in findLogStream (line 13)
Error in setupConnector>localDisableConsoleLogging (line 42)
Error in setupConnector (line 30)
Error in performConnectorAction>startService (line 105)
Error in performConnectorAction (line 13)
Error in connectorHandler>performAction (line 69)
Error in connectorHandler (line 28)
Error in connector (line 10)
connectorHandler(action, varargin{:});
Error in connector.internal.autostart.run (line 10)
Walter Roberson
Walter Roberson 2019년 5월 11일
There is a possibility that it would work if you renamed the directories so that there is no space in the name.
However I suspect that instead you might have permission problems. Experiment with starting matlab with Run As Administrator. If you are able to access the directory with that, then you have a permission problem and need to use File Explorer to examine the security settings on the directories to check ownership and permissions.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by