The filename specified was not found in the MATLAB path
3 次查看(过去 30 天)
显示 更早的评论
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);
0 个评论
回答(1 个)
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
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.
Image Analyst
2015-3-26
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!