obtaining spectrogram in hertz

34 views (last 30 days)
Avnish  Bora
Avnish Bora on 7 Oct 2016
Commented: Avnish Bora on 7 Oct 2016
how to obtain frequency axis in hertz in spectrogram, by its inbuilt function results frequency axis in normalized mode

Accepted Answer

Bert
Bert on 7 Oct 2016
Hi, you should pass the sample frequency as well.
spectrogram(rand(1000,1),windowsize,overlap,windowsize,fs)
(The second time I use windowsize as an argument defines the the size off the fft)
  1 Comment
Avnish  Bora
Avnish Bora on 7 Oct 2016
Thank you for kind reply

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!