Selecting and graphing specific frequency range of Spectrogram

5 Ansichten (letzte 30 Tage)
Sebastian Chen
Sebastian Chen am 11 Jul. 2016
Hi! I'm fairly newish to MATLAB and am trying to get the data of a spectrogram to perform an autocorrelation, but only want to do it on a specific frequency range (i.e. from 0 to 50 Hz). How would I get this data and still preserve the time domain?
This is what I've tried, but it only gives me a straight line when I graph f, and I'm pretty sure it's completely wrong.
figure;
spectrogram(newx, 256, 225, 512, 2000, 'yaxis');
colormap(jet);
[s, f, t] = spectrogram(newx, 256, 225, 512, 2000, 'yaxis');
plot(f);
Thanks in advance for any help!

Antworten (0)

Kategorien

Mehr zu Graph and Network Algorithms finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by