请教一个GUI的问题,怎样将MATLAB仿真图像显示在axes里
1个回答
2017-09-27
展开全部
代码如下:
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);
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询