我是靠谱客的博主 帅气信封,这篇文章主要介绍画图,现在分享给大家,希望可以做个参考。

x=rand(10,1);
y=rand(10,1);
z=rand(10,1);
stps=0:0.03:1;
[X,Y]=meshgrid(stps);
Z1=griddata(x,y,z,X,Y);
Z2=griddata(x,y,z,X,Y,'cubic');
Z3=griddata(x,y,z,X,Y,'nearest');
Z4=griddata(x,y,z,X,Y,'v4');
subplot(2,2,1);
mesh(X,Y,Z1);
hold on
plot3(x,y,z,'o');
subplot(2 ,2, 2);
mesh(X,Y,Z2);
hold on
plot3(x,y,z,'o');
hold off
subplot(2,2,2);
mesh(X,Y,Z2);
hold on
plot3(x,y,x,'o');
hold off
subplot(2,2,3);
mesh(X,Y,Z3);
hold on
plot3(x,y,z,'o');
hold off
subplot(2,2,4);
mesh(X,Y,Z4);
hold on
plot3(x,y,z,'o');
hold off

转载于:https://www.cnblogs.com/qingshuiqianhe/p/5781485.html

最后

以上就是帅气信封最近收集整理的关于画图的全部内容,更多相关画图内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(73)

评论列表共有 0 条评论

立即
投稿
返回
顶部