绘制云图的程序
clear
clc
A=uigetfile('*.txt','MultiSelect','on');
%A=dir(fullfile('*.txt'));
x1=load('x1.txt');
y1=load('y1.txt');
for i=1:length(A)
z=load(A{1,i});
a=A{1,i}(1:end-4);
figure(i);
scatter(x1,y1,53,z,'filled');colorbar;colormap(jet)
xlabel('X(m)','FontSize',13);
ylabel('Y(m)','FontSize',13);
axis([55 100 450 490]);
set(gcf,'unit','centimeters','position',[0,0,14,6]);
fig_name=strcat(a,'.jpg');
saveas(gcf,fig_name);
end
网友评论