I cannot get Spectrogram to highlight a single frequency signal
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
John Hunt
am 15 Jun. 2020
Beantwortet: John Hunt
am 16 Jun. 2020
I want to use the spectrogram function in matlab, before I do I wanted to make sure I understand it. So I did a small example with a sin wave with 440 Hz as the frequency. However, when I run the spectrogram function its shows that the strongest frequency is around 70 Hz. I would love some clarification.
x = 1:.001:5;
y = sin(440*x);
figure(1); plot(x,y)
figure(2); spectrogram(y, 1000, 500, [], 1000, 'yaxis');
Thanks
2 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Time-Frequency Analysis 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!