The filename specified was not found in the MATLAB path

8 views (last 30 days)
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);

Answers (1)

Image Analyst
Image Analyst on 25 Feb 2012
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 Comments
Jan
Jan on 26 Mar 2015
@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.

Sign in to comment.

Categories

Find more on Environment and Settings in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!