Fitting 3d data
9 ビュー (過去 30 日間)
古いコメントを表示
I have a nonlinear 3D data. Can someone help in providing me a function that fits my data? I would like to use that function for interpolation/extrapolation. Appreciate your help.
0 件のコメント
回答 (1 件)
Torsten
2018 年 3 月 1 日
I suggest you interpolate directly from the data:
https://de.mathworks.com/help/matlab/ref/scatteredinterpolant.html
Best wishes
Torsten.
2 件のコメント
Torsten
2018 年 3 月 1 日
Put your first column in vector x, your second column in vector y and your third column in vector z.
Then call
F = scatteredInterpolant(x,y,z);
For a query point (xq,yq)
zq = F(xq,yq)
gives you the interpolated z-value.
Best wishes
Torsten.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!