程序如下:list=dir('E:\Filename\*.png');%%%%获取E:\Filename文件夹下所有png图片的完整路径,保存在list数组中imagedata=imread(list(i).name);%%%%读取png图片imshow(imagedata);%%%%显示图片