MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [求助]双三次样条插值 (https://www.labfans.com/bbs/showthread.php?t=5571)

wangxian 2008-12-01 14:01

[求助]双三次样条插值
 
求双三次样条插值源代码

已知5*5个数据点 在两个数据点之间插4个点 构成21*21个点

二维高斯拟合的源代码


小妹在这里先谢各位大侠了

rongrihua 2008-12-04 23:50

回复: [求助]双三次样条插值
 
ori_matrix = rand(5,5);
[m,n] = size(ori_matrix);
[xx,yy] = meshgrid(1:m,1:n);
[xi,yi] = meshgrid(1:1/5:m,1:1/5:n);
wanted_matrix = interp2(xx,yy,ori_matrix,xi,yi,'linear'); % 可选择你要的插值方法
size(wanted_matrix)

wangxian 2008-12-05 16:25

回复: [求助]双三次样条插值
 
您好 ! 谢谢!
我想问选项里的 spline 是双三次样条插值吗?

rongrihua 2008-12-06 06:07

回复: [求助]双三次样条插值
 
按我的理解,应该是的吧。 不过不敢确定。


所有时间均为北京时间。现在的时间是 06:32

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.