Professional Documents
Culture Documents
20
40
60
80
100
120
50 100 150 200 250
20
40
60
50 100 150 200 250 300 350 400 450
Multiple Logons
50 50
100 100
150 150
200 200
250 250
50 100 150 50 100 150
50 50
100 100
150 150
200 200
250 250
20 40 60 80 100 120 20 40 60
Effect of Window Length
1
0
-1
0 50 100 150 200 250 300
5
10
15
50 100 150 200
10
20
30
50 100 150 200
20
40
60
20 40 60 80 100 120 140 160 180
Logon
1
0.5
-0.5
-1
0 20 40 60 80 100 120 140
10
20
30
10 20 30 40 50 60 70 80 90
Two Sinusoids
50
100
150
200
250
20 40 60 80 100 120 140 160
Example
• %logon; • t=0:0.001:2; % 2 secs @ 1kHz
• x=logon(64,0.4,128); sample rate
• tflog=specgram(x,32,128,32,31); • tf1=specgram(y,256,1E3,256,250);
• subplot(211); • y=chirp(t,0,1,150); % Start @ DC,
• plot(real(x)); cross 150Hz at t=1sec
• subplot(212);
• t=-2:0.001:2; % +/-2 secs @ 1kHz
• imagesc(abs(tflog)); sample rate
• pause;
• figure
• y=chirp(t,100,1,200,'q'); % Start @ 100Hz,
cross 200Hz at t=1sec
• %demo signal;
• tfdemo=specgram(demosig,32,200,32,31); • tf2=specgram(y,128,1E3,128,120); %
• imagesc(abs(tfdemo));
Display the spectrogram
• pause • figure;
• figure; • subplot(211)
• % effect of the window length; • imagesc(abs(tf1));
• y=[zeros(1,128),exp(j*0.6*[1:128])]; • title('Linear Chirp: start at DC, cross 150Hz
• subplot(411); at t=1sec');
• plot(real(y)); • subplot(212)
• subplot(412);
• imagesc(abs(tf2));
• tf1=specgram(y,16,256,16,15);
• imagesc(abs(tf1)); • title('Quadractic Chip: start at 100Hz and
• subplot(413); cross 200Hz at t=1sec');
• tf2=specgram(y,32,256,32,31);
• imagesc(abs(tf2));
• subplot(414);
• tf3=specgram(y,64,256,64,63);
• imagesc(abs(tf3));
Demo Signal
10
15
20
25
30