how can I plot the spectrogram of a signal?

74 次查看(过去 30 天)
Hi,
Can you please help me to plot the spectrogram of the signal below
Fs = 1000; % Sampling frequency
T = 1/Fs; % Sampling period
L = 1000; % Length of signal
t = (0:L-1)*T; % Time vector
S1 = 1.7*cos(2*pi*10*t) + 2*cos(2*pi*20*t)+ 7*cos(2*pi*30*t) + 3*cos(2*pi*40*t)+0.7*cos(2*pi*50*t) + cos(2*pi*60*t)+ 4.7*cos(2*pi*70*t) + 8*cos(2*pi*80*t)+9.7*cos(2*pi*90*t) + 10*cos(2*pi*100*t)+ 17*cos(2*pi*105*t) + 0.5*cos(2*pi*110*t);
Thanks,

回答(1 个)

KSSV
KSSV 2016-12-28

类别

Help CenterFile Exchange 中查找有关 Time-Frequency Analysis 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by