MATLAB Answers

Pradip Mule

I am working on face recognition as my project. I got some codes from file exchange but while running them i am getting same error again and again. That error indicates " Error using imread at 363 ".can anybody help me out?

Asked by Pradip Mule
on 19 Jan 2013

??? Error using ==> imread at 363 File "c3.jpg" does not exist.



No products are associated with this question.

1 Answer

Answer by Image Analyst
on 19 Jan 2013

That file does not exist. Are you using the debugger? How did you construct the filename? Did you do it like this:

baseFileName = 'c3.jpg';
% yourFolder is whatever folder c3.jpg lives in.
fullFileName = fullfile(yourFolder, baseFileName);
if exist(fullFileName, 'file')
  grayImage = imread(fullFileName);
  message = sprintf('The file %s does not exist', fullFileName);


Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply today