Info

この質問は閉じられています。 編集または回答するには再度開いてください。

What happens when the argument l=1 in spap2 command?

1 回表示 (過去 30 日間)
Varsha
Varsha 2016 年 9 月 8 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Is only one polynomial fit on the data points. In that case what are the equations solved to obtain the 4 unknowns?

回答 (1 件)

Joost
Joost 2016 年 9 月 8 日
I guess what you mean is the fit of one cubic polynomial (4 unknowns) on an arbitrary large data set of (x, y) pairs. In that case, your equations have been written down nicely at this page.
  2 件のコメント
Varsha
Varsha 2016 年 9 月 8 日
But aren't there more constraints in case of spap2 algorithm other than a least square approximation by a cubic polynomial. If that was not the case,spap2 with l=1 and k=4 as well as polyfit of degree 3 would give same fit.But that is not the case.
Joost
Joost 2016 年 9 月 9 日
This might be the weighting factor w (5th argument in spap2 function call). Could you please try with weights set to 1 and check if the result is the same as polyfit? (I do not have the toolbox with spap2 myself). The weights may cause the different result.

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by