matlab 新建文件夹并存入文件

plot(1:10,2:11)  
% picName = [num2str(ii),'.jpg']   % connection of strings
if ~exist('AAAA') 
    mkdir('AAAA') 
end 
picName2 = './AAAA/2.jpg'
saveas(gcf,picName2)

转载仅为学习,不会商用。
欢迎转载原创,附文链接。
原文地址:https://www.cnblogs.com/xdd1997/p/13701982.html