Matlab如何绘制云图

标签:
matlab |
分类: MATLAB |
转自:http://rejessica.blog.163.com/blog/static/18356315120122492118870/
思路:采用surf命令,然后使用view命令调整视角,得到平面云图。
surf(X,Y,t);colorbar;xlabel('x');ylabel('y');zlabel('t');az
= 0;el =- 90;view(az, el);%el=-90意味着从z轴负方向往其正方向看
方法二:
%The last
row and column of t are not used.
方法一:
x=1:51;y=1:51;[X,Y]=meshgrid(x,y); surf(X,Y,t);colorbar % t
数据为之前所load的数据
得到结果:
得到结果:
采用pcolor函数
pcolor(xx,yy,t);%When you use shading faceted
or shading flat, the constant color of each cell is the color
associated with the corner having the
%smallest x-y coordinates.
Therefore, t(i,j) determines the color of the cell in the ith row
and jth column.
如果再加上
shading interp;%When you
use shading
interp, each cell's color results from a bilinear
interpolation of the colors at its four vertices, and all elements
of
% t are
used.
后一篇:[转载]Oracle常用语句整理