求助,matlab画图
这种图怎么画出来的?
就给了300多组3维数据
用plot3画出来就是散点图了 matlab插值 这是网格图插值得到的,比如
t=-8:0.3:8
=meshgrid(t);
r=sqrt(x.^2+y.^2)+eps;
z=sin(r)./r;
subplot(1,3,1),meshc(x,y,z);
title('meshc'),axis([-8 8 -8 8 -0.5 0.8]);
subplot(1,3,2),meshz(x,y,z);
title('meshz'),axis([-8 8 -8 8 -0.5 0.8]);
subplot(1,3,3), mesh(x,y,z);
title('mesh'),axis([-8 8 -8 8 -0.5 0.8])
head_@_WOLF 发表于 2012-8-6 15:32 static/image/common/back.gif
matlab插值
灰常感谢您的回答,我试试看 zyccxsy 发表于 2012-8-6 15:43 static/image/common/back.gif
灰常感谢您的回答,我试试看
非常感谢您的回答,我试试看 最好用拟合,surf命令作图 scatter(x,y,5,z)%散点图
figure=griddata(x,y,z,linspace(1.486,4.271)',linspace(1.604,4.276),'v4');%插值
pcolor(X,Y,Z);shading interp%伪彩色图
figure,contourf(X,Y,Z) %等高线图
figure,surf(X,Y,Z)%三维曲面
用这个就可以了! 不会。。。。。。。。。。。。。。。。。。 这个是个好东西 ~ 不错,不过可以可以看看Matlab的帮助文档也是不错的,还有实例呢
页:
[1]
2