插值算法的作用是什么?用来同步?如果有这个功能,麻烦介绍一下.

jun461980739 1年前 已收到1个回答 举报

ss先生 幼苗

共回答了7个问题采纳率:100% 举报

(nearest、linear、cubic、spline)对peaks函数的插值效果图,函数命令如下:
[x y z]=peaks(10);
mesh(x,y,z)
[xi,yi]=meshgrid(-3:.1:3,-3:.1:3);
n=interp2(x,y,z,xi,yi,'nearest');
l=interp2(x,y,z,xi,yi,'linear');
c=interp2(x,y,z,xi,yi,'cubic');
s=interp2(x,y,z,xi,yi,'spline');
subplot(2,2,1);mesh(xi,yi,n);
subplot(2,2,2);mesh(xi,yi,l);
subplot(2,2,3);mesh(xi,yi,c);
subplot(2,2,4);mesh(xi,yi,s);

1年前 追问

4

jun461980739 举报

谢谢 我想知道插值算法的作用 有同步的作用吗?
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 17 q. 0.033 s. - webmaster@yulucn.com