I'm trying to fit some data belong to a sum of sines function (Fourier sparse) in MATLAB, however, the number of terms of sine function in MATLAB is limited,i.e. to $1 \leq n \leq 8$. However, I want more terms in my fit functions, i.e. over $50$ terms. By the way I do not intent to recover the signal using Compressive-sensing sparse recovery methods or Fourier based curve fitting and my goal is not signal estimation.
- Is there anyway to make MATLAB to fit my data to a sum of sine function with over 8 sinusoidal terms?
- Why there is such constraint in MATLAB (is it technically or arbitrary)? - Is there any toolbox to fit sinusoidal function (especially something that is capable of supporting wieghted data)?
f = fit(X,Y, 'sin10') Error using fittype>iCreateFromLibrary (line 412) Library function sin10 not found.
It is o.k up to
I appreciate any answer.