필터 지우기
필터 지우기

Polynomial fitting prob lem

조회 수: 1 (최근 30일)
Tom
Tom 2013년 1월 28일
Hello,
Would anyone have an idea how to prevent these large peaks and troughs occurring at the edges of a polynomial fit?
x = -1:0.005:1;
y = rand(size(x));
polydegree = 15;
coeffs = polyfit(x, y, polydegree);
y = polyval(coeffs,x);
plot(x,y,'k')
  댓글 수: 1
Tom
Tom 2013년 1월 28일
ooh, for instance - is there a way to constrain the polyfit so that the start and end points are always 0?

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

채택된 답변

Jan
Jan 2013년 1월 28일

추가 답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by