imwrite一个mat文件(包含多个数据cell)到一个文件夹

 错:数字识别不来的,

for k = 1 : length(IsT)  
    %newname{k}= fileList(k).name(1:end-4);
    imwrite(IsT{k},strcat('C:\Users\DELL\Desktop\cofw\',k,'.png'));
end 

对:转化为字符 

for k = 1 : length(IsT)  
    %newname{k}= fileList(k).name(1:end-4);
    imwrite(IsT{k},strcat('C:\Users\DELL\Desktop\cofw\',num2str(k),'.png'));
end 

猜你喜欢

转载自blog.csdn.net/YeziTong/article/details/85225109
今日推荐