필터 지우기
필터 지우기

Error when opening a live script (.mlx) file

조회 수: 2 (최근 30일)
Mert Dogan
Mert Dogan 2022년 3월 3일
댓글: Walter Roberson 2023년 8월 19일
My computer suddenly shut down due to a power outage. Then when I try to open the .mlx file I'm working on, I get the error "Error loading C:\ filepath".
In the command window, I got the this error:
Error using which
C:\filepath\Analysis.mlx: Can't open file.
Error in run (line 55)
pathscript = evalin('caller',
strcat('which(''', script, ''')'));
Can you help me solve the problem?

답변 (1개)

LEINER BARBA
LEINER BARBA 2023년 8월 19일
I have the same problem, any advice? Could you find a solution?
  댓글 수: 1
Walter Roberson
Walter Roberson 2023년 8월 19일
In order to get that particular error message about "which", instead of a message about the file not being found, then one of the following must be true:
  • you do not have permission to follow the path C:\filepath even though that path exists; or
  • you do not have permission to open the file C:\filepath\Analysis.mlx even though that file exists; or
  • the file is locked
You would get different error messages if the file were not found, or if the file exists but is corrupted.
Rebooting might maybe help, maybe.
When you have problems running a file after a power failure, it is common that you end up needing to look for the autosaved version of the file (same directory), or that you need to restore the file from backup.

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

카테고리

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