clc;clear all;close all;
file_jpg = ls(strcat('E:\MatlabProject\Image_Processing','/*.jpg'));
files = cellstr(file_jpg);
fileNum = length(files);
for n = 1:fileNum
img = imread(files{n});
subplot(2,2,n);
imshow(img);xlabel(files{n});
end
这个程序运行后出错提示
错误使用 imread (line 349)
文件 "沈俊希 z13215066001.jpg" 不存在。
但是这个文件夹下确实有这些图片,zhe'shi'wei'shen'me'ne