I am calculating frequency bin index k
with formula
k = f_k * N / Fs + 1,
where sample rate is Fs
, the number of samples in the FFT is N
, then the frequency of the bin with Matlab index k
is f_k
. But I get that k
is decimal number, and it needs to be integer because I use it later like index for Fourier transformed series. I don't know what to do?