Polynomial Curve Fitting Function

1 Ansicht (letzte 30 Tage)
farah
farah am 15 Nov. 2016
Kommentiert: Walter Roberson am 24 Nov. 2016
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 ?

Antworten (1)

KSSV
KSSV am 15 Nov. 2016
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 Kommentare
farah
farah am 24 Nov. 2016
so how to to compute that sine wave?
Walter Roberson
Walter Roberson am 24 Nov. 2016
x = linspace(0, 4*2*pi, 501);
x(end) = []; %4 cycles would not touch 0 a fifth time
S4 = sin(x);

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Polynomials finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by