Why this error of a function that is not found in the current directory?

조회 수: 8 (최근 30일)
Stelios Fanourakis
Stelios Fanourakis 2018년 5월 17일
댓글: Max Vollmering 2019년 4월 11일
I get this error line "'DicomReader' is not found in the current folder or on the MATLAB path, but exists in:
C:\Users\f028368h\Downloads
C:\Echo Images\Stelios\Test
C:\Echo Images\Stelios
C:\Users\f028368h\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\TempState\Downloads
Change the MATLAB current folder or add its folder to the MATLAB path.
Error in fresh>Load_image_Callback (line 142)"
DicomReader function exist in the current directory. I don't understand why MATLAB cannot find it. Any idea?
  댓글 수: 9
Stelios Fanourakis
Stelios Fanourakis 2018년 5월 18일
@Jan, I really do not remember what I did and worked. I suppose it was a syntax error or order error, maybe misspelling. If I find I'll post it.
Max Vollmering
Max Vollmering 2019년 4월 11일
I encountered the very same problem and it was a syntax error. In my case I used:
obj = Class_Constructor( A , B , :)
This led to the error "[...] is not found in the current folder or on the MATLAB path, but exists in: ...", although it was there!
Solving the syntax problem helped:
obj = Class_Constructor( A , B , 1:4)

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

답변 (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