Open UDEPWollny opened 3 years ago
I'll now answer my own question in case someone had the same issue. The thing is, that df = 1/(M dt) holds. One simply has to scale the total sampling time T = Mdt to unity and apply this to the sampling location vector "x". The frequency is then index * df (with df = 1 / T).
Hi,
I have a question regarding the frequency resolution for the vector of Fourier coefficients. No matter what I do, whether I use equal M and N, or one being a multiple of the other, it doe's not change the frequency resolution of the coefficients given in f_hat. For equidistant FFT, there is is a relationship for df, which is the reciprocal of M * dt. This obviously does not apply here, since df stays always at df = 1 Hz. Is there a chance to change this behavior, or am I doing something wrong in principle? Here is my little test to check the right frequencies and amplitudes. I can see that the 200 Hz, for example, is always at index 200.
THX! Patrick