필터 지우기
필터 지우기

Matlab not recognizing the file within directory

조회 수: 14 (최근 30일)
Ayesha
Ayesha 2014년 1월 24일
댓글: Jan 2014년 2월 1일
I've had this issue once and this is the second time. When I'm running a file whose path has already been set and all the relevant folders have been added, Matlab is simply not recognizing the file. Its giving me an error "Undefined function or variable 'myFile'". I did resolve the first time by copying the code to a new script and saving them in different location and this is the second time that it has occurred. How could I resolve this matter?
And yes, its just one piece of code file that is getting the error, the rest o my previous matlab works are running successfully.

답변 (1개)

Walter Roberson
Walter Roberson 2014년 1월 24일
Try giving the command
rehash toolbox
  댓글 수: 6
Ayesha
Ayesha 2014년 2월 1일
편집: Walter Roberson 2014년 2월 1일
EDU>> which MyFile
'MyFile' not found.
EDU>> !ls My*.*
'ls' is not recognized as an internal or external command,
operable program or batch file.
Walter Roberson
Walter Roberson 2014년 2월 1일
Try
ls My*.*
without the '!' before it. (You had not indicated the OS you were using and I guessed incorrectly.)

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

카테고리

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