Can I use different models to do a 2D fit?

1 回表示 (過去 30 日間)
Jaime De La Mota Sanchis
Jaime De La Mota Sanchis 2021 年 10 月 1 日
回答済み: Matt J 2021 年 10 月 1 日
Hello everyone. I am currently working in a two-dimensional interpolation.
I can write
sfX = fit([positions(:,1), positions(:,2)],windX_in_the_node_vector,'poly34')
witout any issue. However, if I check the documentation, I see that the only other surface fit that can be used is 'lowess'. Is this true or can I use splines or other alternative interpolation methodologies?
Best regards.
Jaime.

採用された回答

Matt J
Matt J 2021 年 10 月 1 日
Yes, but you don't need the Curve Fitting Toolbox just tod surface interpolation. With interp2 (if you have gridded data) you can use any of the ones listed here,
If you have scattered samples, then with griddata, you can use any of the methods here,

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInterpolation についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by