1、Matlab画图举例风向不变,风速随高度线性变化情形:rCVrVrh100)()( 010cos)(arccosrCVC(10.4)式式风向不变,风速随高度增加而线性减小,则风向不变,风速随高度增加而线性减小,则C1取负值取负值风向不变,风速随高度增加而线性增加,则风向不变,风速随高度增加而线性增加,则C1取正值取正值风向不变,风速随高度的增加而线性减小风向不变,风速随高度的增加而线性减小,C1=-0.1%书图10.5 close all;th,r = meshgrid(0:10:360)*pi/180,0:20:300);X,Y = pol2cart(th,r);v0=30;c1=-0.1;
2、%c1=0.1;%beta0=45*pi/180;beta0=0*pi/180;alf=45*pi/180;C=cos(alf)*(v0+c1*r).*cos(th-beta0);zmax=max(max(C);zmin=min(min(C);%zmax=15;zmin=-15;%cv=-30:3:25;cv=linspace(zmin,zmax,20); h = polar(0 2*pi, 0 300);%view(90,-90);delete(h);hold on;C,h=contourf(X,Y,C,cv,k.);set(h,LineWidth,0.5); %填充图%C,h=contou
3、r(X,Y,C,cv,k.);set(h,LineWidth,0.5); %等值线图%clabel(C,h,Color,red); %数值标注caxis(zmin,zmax);Colorbar;%*%str1=fontnamearialfontsize14 Fig 10.4. Radar ;%str1=fontnamearialfontsize14 Fig 10.5. Radar ;%title(str1);%print -dbitmap 02.bmpxlabel( Fig 10.5. RADAR);风向不变,风速随高度的增加而增大,风向不变,风速随高度的增加而增大, C1=0.1%书图10.
4、4例close all;th,r = meshgrid(0:10:360)*pi/180,0:20:300);X,Y = pol2cart(th,r);v0=30;%c1=-0.1;c1=0.1;%beta0=45*pi/180;beta0=0*pi/180;alf=45*pi/180;C=cos(alf)*(v0+c1*r).*cos(th-beta0);zmax=max(max(C);zmin=min(min(C);%zmax=15;zmin=-15;%cv=-30:3:25;cv=linspace(zmin,zmax,20); h = polar(0 2*pi, 0 300);delete(h);hold on;C,h=contourf(X,Y,C,cv,k.);set(h,LineWidth,0.5); %clabel(C,h,Color,red);caxis(zmin,zmax);Colorbar;str1=fontnamearialfontsize14 Fig 10.4. Radar ;%str1=fontnamearialfontsize14 Fig 10.5. Radar ;title(str1);%print -dbitmap 02.bmp