For sum of sin fit in the curve fitting, b represents frequency. I want to know that does it mean angular frequency (w=2*pi/period), or usual frequency (f)?
Thank you.
Best Answer
That depends on how it is defined in the context of what you are doing. As a general rule, the argument to the sin() function is in radians.
With respect to the delay, see if thefinddelay (link) function will do what you want. (I believe it was introduced inR2015b. The documentation does not say specifically.)
To find the amplitudes at a specific frequency, use thefft (link) function, and compare (subtract or divide) the amplitudes at each frequency, or only your frequency-of-interest if you are only interested in one frequency. The signals must be the same length and have the same sampling frequency for this approach to work optimally.
Best Answer