- 积分
- 153
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-10-21
- 最后登录
- 1970-1-1
|
MATLAB
问题截图: |
|
问题概况: |
画不出南北美洲轮廓 |
我看过提问的智慧: |
看过 |
自己思考时长(天): |
7 |
系统平台: |
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
这是绘制程序:
x=0:2.5:357.5; %经度范围
y=-90:2.5:90; %维度范围
x=x';
for k=1:73
kk=(k-1)*144+1;
R3(:,k)=R2(kk:(kk+143)); %把数据排列成矩阵形式,144行(经度),73列(纬度)
P3(:,k)=P2(kk:(kk+143)); %把数据排列成矩阵形式,144行(经度),73列(纬度)
end
R4=R3'; %矩阵转置:73行,144列
P4=P3'; %矩阵转置:73行,144列
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
figure(1)
v1=-0.1:-0.1:min(min(R4));
v1=fliplr(v1);
v2=0:0.1:max(max(R4));
[c,h]=contour(x,y,R4,v2); %绘制等高线
set(h,'ShowText','on','Linestyle','-','Color','b')
hold on
[c,h]=contour(x,y,R4,v1); %绘制等高线
set(h,'ShowText','on','Linestyle',':','Color','r')
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
hold on
[c,h]=contourf(x,y,-P4,[-0.05 0]); %绘制等高线
title('June(same year)')
%%%%%%%%%%%%%%%%%%%%%%%
%mapping world coast
hold on
load coast
a=length(lat);
b=length(long);
for i=600:b/2.25
if long(i)<0
long(i)=long(i)+360;
end
end
geoshow(lat,long);
grid on
xx=0:30:330;
yy=-90:30:90;
3.tif
(2.55 MB, 下载次数: 2)
|
|