2d interpolation and finding equation to fit on data

1 次查看(过去 30 天)
Hi,
i am trying to find an equation to fit on my data.i have used 2d interpolation with linear method(inter2 command).now i would like to know is there any way to get an equation which is fitted by interpoalet data?and also evalute interpolant.this is my meshed data :
clear
clc;
BHv= [1:1:8];
phiv= [0:10:30];
h = [ 1 1.02 1.11 1.21 1.3 1.4 1.59 1.78; ...
1 1.11 1.35 1.62 1.95 2.33 3.34 4.77; ...
1.01 1.39 2.12 3.29 5.17 8.29 22 61; ...
1.13 2.5 6.36 17.5 50 150 1400 14800];
mesh(BHv,phiv,h)
xlabel('x-axis,(B/H)')
ylabel('y-axis,phi')
zlabel('depth factor,hc')
title('depth factor(hc) measurements,mandel & salencon 1969')
or if i want to use 2D spline interpolation,what should i do to get that equation which fit on data???

回答(1 个)

Walter Roberson
Walter Roberson 2011-7-23
The answer doesn't change just because you ask the question again. See http://www.mathworks.com/matlabcentral/answers/10582-deriving-surface-equation-form-data-on-a-table

类别

Help CenterFile Exchange 中查找有关 Interpolation 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by