The filename specified was not found in the MATLAB path

조회 수: 4 (최근 30일)
Gova ReDDy
Gova ReDDy 2012년 2월 25일
댓글: Image Analyst 2015년 3월 26일
Hi... Can someone suggest something about this error.Even I'm using the correct path I'm getting this error ??? Error using ==> mmreader.mmreader>mmreader.getFullPathName at 332 The filename specified was not found in the MATLAB path.
Error in ==> mmreader.mmreader>mmreader.init at 358 fullName = mmreader.getFullPathName(fileName);
Error in ==> mmreader.mmreader>mmreader.mmreader at 133 obj.init(fileName);
Error in ==> prjct at 10 xyloObj = mmreader(movieFullFileName);

답변 (1개)

Image Analyst
Image Analyst 2012년 2월 25일
I know you know how to use the debugger by now. So what happens when you examine the variable "movieFullFileName" when you stop there? Does it have a valid filename? You should be writing more robust code by now, including things like putting this (untested) before you call mmreader:
if ~exist(movieFullFileName, 'file')
warningMessage = sprintf('Warning: movie file %s does not exist', movieFullFileName);
uiwait(warndlg(warningMessage));
return; % Bail out
end
  댓글 수: 3
Jan
Jan 2015년 3월 26일
@Rahul: If you do not know how to use the debugger it is time to learn it. Open the documentation and search for the chapters about the debugger. You cannot handle Matlab efficiently without doing this. Even the forum cannot guess, why the variable movieFullFileName contains a file name, which is not found.

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

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by