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

6 views (last 30 days)
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,
filename = 'value.xlsx';
A = xlsread(filename);

Sign in to comment.

Answers (1)

Asad (Mehrzad) Khoddam
Asad (Mehrzad) Khoddam on 1 Oct 2020
try polyfit function:


Find more on Polynomials in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!