I have a signal whose expression is shown below:
Mathematical expression of the signal
What method can I use to fit this signal accurately when A, B, ω, D,E in the signal are all unknown parameters? In particular, the most critical unknown parameter in there is ω.
The signal looks something like this:
How can the value of ω, the most critical of these, be estimated accurately?
I tried MATLAB's lsqcurvefit and nlinfit functions, but the accuracy is hardly satisfactory. Tried extracting ω using FFT and found that the results are not very accurate either.


1.- The signal supplied in the figure attached to the question clearly shows a single tone + 1 sawtooth.
This is the supplied kind of a 'screen shot'
As long as the tone has enough power to show above the sawtooth spectrum then to estimate the sought frequency of a single tone sufices to just spot the peak of the single tone surrounded by the sawtooth spectrum.
If the sought tone frequency happens with power below the envelope of the sawtooth, then you have to look for the anomaly along the sawtooth spectrum envelope that otherwise, without a tone, has a smooth
1/kdecay with increasing frequency.2.- The signal you are analysing is not exactly the one in the supplied expression
this is the supplied expression of the signal
Even if the supplied signal is all you have, one must assume finite power signals, not infinite energy signals, in order to use the Fourier transform.
Rewording; the signals
x1(t)=a*t,x2(t)=a*|t|do not have a Fourier transform either along[-Inf Inf]or[0 Inf]because the integral for the transform to spectrum does not produce anything.So we need to time window the signal and therefore the signal to be considered for spectrum analysis is sum of 1 tone and 1 sawtooth.
Since no
tstarttstoporttime reference mentioned I asume one :If
f2*tstopnot an integer then either a fraction of amin(f1,f2)should be added or cut last cycle fraction.For simplicity I have not included such case where there are cycle tails to deal with.
So it's clear that the image of the signal supplied in this question is 1 tone and 1 sawtooth.
3.- The supplied image of the signal IS NOT 2 tones and 1 sawtooth
A signal including 2 tones both on same frequency and 1 sawtooth actually looks as follows :
So it's clear that the image of the signal supplied in the question is 1 tone and 1 sawtooth.
The time discontinuities, as time signals have been generated, can be solved so there are smooth transitions only. It's not difficult, but laborious, and for the purpose of answering this question, such effort would not add relevant contents.
4.- Spectrum
In contrast to single tones, sawtooths have populated spectrums, noise and interference aside
5.- References to Sawtooth signal basics:
We can review sawtooth signal basics in for instance:
https://mathworld.wolfram.com/FourierSeriesSawtoothWave.html
and
https://en.wikipedia.org/wiki/Sawtooth_wave
6.- Sawtooth signal spectrum envelope
T2is the sawtooth base cycle.Remove the DC constant if the sawtooth was been time defined as with no DC.
A2is the sawtooth amplitude WITH DC as I have initially defined it.The null DC sawtooth, has amplitude
A2/2.The envelope of the sawtooth SIGNAL (NOT POWER) spectrum is
1/(pi*k)but this does not includeFsandL:k1=[0:1:numel(f)-1];
Comments
Note there's no DC because the tone is
sinand I have removed any sawtooth DC.For 2 tones, since both would be on the same frequency the amplitude spectrum would be similar.
If you would like to see how to catch weak tones cluttered with a sawtooth signal please post another question.