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

2 次查看(过去 30 天)
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.

请先登录,再进行评论。

回答(1 个)

Asad (Mehrzad) Khoddam
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