如何在matlab gui的一个axes中显示多个图像
3个回答
展开全部
代码如下:
str = 'F:\课题\yxld1\image 11\';
pt = dir(str);
foldname = []; k = 0;
for i = 1 : length(pt)
if strcmp(pt(i).name, '.') | strcmp(pt(i).name, '..')
continue;
else
k = k + 1;
foldname{k} = pt(i).name;
end
end
for i = 1 : length(foldname)
temp = strcat(str, foldname{i}, '\\*.jpg');
temp1 = dir(temp);
for j = 1 : length(temp1)
jpgpath{i, j} = strcat(str, foldname{i}, '\\', temp1(j).name);
end
end
celldisp(jpgpath);
str = 'F:\课题\yxld1\image 11\';
pt = dir(str);
foldname = []; k = 0;
for i = 1 : length(pt)
if strcmp(pt(i).name, '.') | strcmp(pt(i).name, '..')
continue;
else
k = k + 1;
foldname{k} = pt(i).name;
end
end
for i = 1 : length(foldname)
temp = strcat(str, foldname{i}, '\\*.jpg');
temp1 = dir(temp);
for j = 1 : length(temp1)
jpgpath{i, j} = strcat(str, foldname{i}, '\\', temp1(j).name);
end
end
celldisp(jpgpath);
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询