MATLAB Answers

Polynomial Curve Fitting Function

5 ビュー (過去 30 日間)
farah 2016 年 11 月 15 日
コメント済み: Walter Roberson 2016 年 11 月 24 日
Hi, I have some problem regarding the polynomial curve fitting. I compute coefficient from Data A using fifth degree polynomial and the sample coefficient obtained from Data A was used back to Data B (to reconstruct similar to Data A). My question is did the polynomial considered my Data B also to fit the curve ?

回答 (1 件)

KSSV 2016 年 11 月 15 日
No it will not consider data B. It gives polynomial coefficients based on Data A. If your data B x ranges are same as data A x ranges, then data B can be fitted with this polynomial.
  9 件のコメント
Walter Roberson
Walter Roberson 2016 年 11 月 24 日
x = linspace(0, 4*2*pi, 501);
x(end) = []; %4 cycles would not touch 0 a fifth time
S4 = sin(x);



Community Treasure Hunt

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

Start Hunting!

Translated by