www.gusucode.com > signal 案例源码程序 matlab代码 > signal/LinearChirpExample.m
%% Linear Chirp % Generate a chirp with linear instantaneous frequency deviation. The chirp % is sampled at 1 kHz for 2 seconds. The instantaneous frequency is 0 at t % = 0 and crosses 250 Hz at t = 1 second. % Copyright 2015 The MathWorks, Inc. %% t = 0:1/1e3:2; y = chirp(t,0,1,250); %% % Compute and plot the spectrogram of the chirp. Specify 256 DFT points, % a Hamming window of the same length, and 250 samples of overlap. spectrogram(y,256,250,256,1e3,'yaxis')