Borrar filtros
Borrar filtros

The filename specified was not found in the MATLAB path

8 visualizaciones (últimos 30 días)
Gova ReDDy
Gova ReDDy el 25 de Feb. de 2012
Comentada: Image Analyst el 26 de Mzo. de 2015
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);

Respuestas (1)

Image Analyst
Image Analyst el 25 de Feb. de 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 comentarios
Jan
Jan el 26 de Mzo. de 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.

Iniciar sesión para comentar.

Categorías

Más información sobre Environment and Settings en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by