Polynomial Curve Fitting Function

조회 수: 1 (최근 30일)
farah
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
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
farah
farah 2016년 11월 24일
so how to to compute that sine wave?
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);

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Polynomials에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by