how can I plot the spectrogram of a signal?

96 views (last 30 days)
Dana Alsalman
Dana Alsalman on 28 Dec 2016
Answered: KSSV on 28 Dec 2016
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,

Answers (1)

KSSV
KSSV on 28 Dec 2016

Categories

Find more on Time-Frequency Analysis in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!