-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathviusalize_noisy_Sepctrograms.m
77 lines (52 loc) · 1.58 KB
/
viusalize_noisy_Sepctrograms.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
clear;clc;
reqSNRdB=50;
load('F:\oytun_Calisma\data\spectrograms_visualize_notjittered.mat')
figure(2)
%% visualize spectrograms slow walk
myindex = [1:12];
for index=1: length(myindex)
spectrogram=spectrograms(:,:,myindex(index));
myspectrogram = 10*log10(abs(spectrogram));
spect2= helperPreProcess(myspectrogram);
doppler = linspace(-8000,8000,size(spect2,1));
time=linspace(0,16,size(spect2,2));
T=time;
F=doppler;
subplot(3,4,index)
imagesc(T,F,spect2);
xlabel('Time(s)');
ylabel('Frequency(Hz)')
colorbar
if(index<=4)
title('Fast Walk');
elseif(5<=index && index<=8)
title('Slow Walk');
else
title('Slow Walk with Pockets');
end
end
load(['F:\oytun_Calisma\data\spectrograms_visualize_jittered_',num2str(reqSNRdB),'dB.mat']);
figure(3)
%% visualize spectrograms slow walk
myindex = [1:12];
for index=1: length(myindex)
spectrogram=spectrograms(:,:,myindex(index));
myspectrogram = 10*log10(abs(spectrogram));
spect2= helperPreProcess(myspectrogram);
doppler = linspace(-8000,8000,size(spect2,1));
time=linspace(0,16,size(spect2,2));
T=time;
F=doppler;
subplot(3,4,index)
imagesc(T,F,spect2);
xlabel('Time(s)');
ylabel('Frequency(Hz)')
colorbar
if(index<=4)
title('Fast Walk');
elseif(5<=index && index<=8)
title('Slow Walk');
else
title('Slow Walk with Pockets');
end
end