how to fit a signal using polynomial fit with hogher order?

조회 수: 3 (최근 30일)
AS
AS 2020년 9월 30일
답변: Asad (Mehrzad) Khoddam 2020년 10월 1일
I have a amplitude value with time period of a signal. I am trying to fit this signal by polynomial fitting. I have attached the amplitude vaueand written the code but it is not fitting. Is it possible to it using higher order of polynomial. I want to fit the curve using higher polynomial order (i.e. greater than 9) but it is not done. Please help me to solve this,
tt=0:2:3601;
tt=tt';
filename = 'value.xlsx';
A = xlsread(filename);
f1=fit(tt,A,'poly9');
plot(f1,tt,A);
  댓글 수: 4
AS
AS 2020년 10월 1일
I wanted to fit polynomial to see in which order it will fit.
Walter Roberson
Walter Roberson 2020년 10월 1일
I recommend you use cftool to explore the fits.

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

답변 (1개)

Asad (Mehrzad) Khoddam
Asad (Mehrzad) Khoddam 2020년 10월 1일
try polyfit function:

카테고리

Help CenterFile Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by