0

I am using matlab to generate a chirp signal frequency between 35000 Hz and 45000 Hz. I want to use the spectogram function to monitor the change in frequency overtime, but I dont know how to use this function. Any help?

freqSamp = 96000;
tStart = 0;
tEnd = 1;
t = tStart:1/freqSamp:tEnd;

freqStart = 35000;
freqEnd = 45000;
phaseInit = -90;
method = 'linear';
y = chirp(t, freqStart, tEnd, freqEnd, method, phaseInit);

spectrogram(x, , , ,96000,'yaxis')
Luis Mendo
  • 110,752
  • 13
  • 76
  • 147
Thang Dinh
  • 87
  • 2
  • 9
  • 1
    [`help spectrogram`](https://www.mathworks.com/help/signal/ref/spectrogram.html) would probably be a good start – sco1 Mar 23 '18 at 18:42
  • `spectrogram(y, 1024, [], [], 96000, 'yaxis')` produces a nice picture. You can experiment with other input valies – Luis Mendo Mar 23 '18 at 18:46

0 Answers0