how can I plot the spectrogram of a signal?
96 views (last 30 days)
Show older comments
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,
0 Comments
Answers (1)
See Also
Categories
Find more on Time-Frequency Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!