Converting from frequency bins to HZ
Show older comments
Hi everyone, I have a frequency vector with range 0:fs/N:fs/2, is this already in Hz or do I still need to multiply it by fs/N. Also I have a plot of the PSD of an EEG signal. I want the y-axis to be in dB/Hz. How do I do this.
4 Comments
MeitiLuk
on 12 Nov 2020
can u maybe show your code?
Walter Roberson
on 12 Nov 2020
That vector is already in Hz.
Temisanren Okotie
on 12 Nov 2020
Ayush Bansal
on 18 Nov 2020
The vector is alreay in Hz. 0:fs/N:fs/2 will create a vector from 0 to fs/2 with increment of fs/N Hz. Use pwelch(x) for PSD of a signal.
Answers (0)
Categories
Find more on EEG/MEG/ECoG in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!