for trial=1:20
figure(trial);
str1 = ['同质第',num2str(trial),'个图'];%批量起名,便于后续存储命名
eval(['yfig',num2str(trial),'=','figure(trial)',';']);
subplot(2,2,1);
clim=[0 1];
imagesc(GG,aa,ksP);
title('the KS distance of the FCD')
set(gca,'fontsize',18)
axis xy;
xlabel("G");
ylabel("a");
c=colorbar;
caxis(clim);
colormap('jet');
subplot(2,2,2);
plot(GG,ksP(:,26))
axis xy;
xlabel("G");
ylabel("KSd");
title('a≈0,find G')
set(gca,'fontsize',18)
subplot(2,2,3);
clim=[1 9];
imagesc(GG,aa,Eu);
title('the Euclidean distance of the FC')
set(gca,'fontsize',18)
axis xy;
xlabel("G");
ylabel("a");
c=colorbar;
caxis(clim);
colormap('jet');
subplot(2,2,4);
plot(GG,Eu(:,26))
axis xy;
xlabel("G");
ylabel("Eu");
title('a≈0,find G')
set(gca,'fontsize',18)
print(eval(['yfig',num2str(trial)]),[str1,'.tif'],'-r600','-dtiff'); %设置图片格式(tiff格式)、分辨率600
end
matlab 批量绘图+存储
于 2022-08-01 22:49:21 首次发布