Error using imread (line 368) ; File "..." does not exist
Show older comments
Hi all, I am getting this error , can please any tell what I am doing wrong, as file do exists.
myFolder = 'C:\Users\Ankit Gupta\Desktop\image\'; if ~isdir(myFolder) errorMessage = sprintf('Error: The following folder does not exist:\n%s', myFolder); uiwait(warndlg(errorMessage)); return; end filePattern = fullfile(myFolder, '*.png'); pngfiles = dir(filePattern); >> im1 = imread(pngfiles(1).name) Error using imread (line 368)
Accepted Answer
More Answers (0)
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!