??? Error using ==> imread at 363 File "c3.jpg" does not exist.
No products are associated with this question.
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); else message = sprintf('The file %s does not exist', fullFileName); uiwait(warndlg(message)); end