-
Notifications
You must be signed in to change notification settings - Fork 4
/
plot_mmwave.m
52 lines (40 loc) · 1.45 KB
/
plot_mmwave.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
%%%%% Plotting
SNR = -40:5:0;
lw = 1.5;
ms = 5;
load('t256r16k8s2c2_mmwave.mat')
rate_bd_fnorm = rateMat(:, 3);
rate_bd = rateMat(:, 1);
rate_bd_spa2 = rateMat(:, 2);
load('t256r16k8s2c4_mmwave.mat')
rate_bd_spa4 = rateMat(:, 2);
figure
hold on
plot(SNR, abs(rate_bd), 'k-*', 'LineWidth', lw, 'MarkerSize', ms)
plot(SNR, abs(rate_bd_fnorm), 'b--', 'LineWidth', lw, 'MarkerSize', ms)
plot(SNR, abs(rate_bd_spa2), 'r^-.', 'LineWidth', lw, 'MarkerSize', ms)
plot(SNR, abs(rate_bd_spa4), 'rv-.', 'LineWidth', lw, 'MarkerSize', ms)
hold off
grid
legend('Traditional BD', 'Hybrid BD (1-norm)', ...
'Sparse precoding&combining (2 RF chains) [15]', 'Sparse precoding&combining (4 RF chains) [15]')
xlabel('SNR (dB)')
ylabel('Sum spectral efficiency (bps/Hz)')
load('upa_t256r16k8s2c2_mmwave.mat')
rate_bd_fnorm = rateMat(:, 3);
rate_bd = rateMat(:, 1);
rate_bd_spa2 = rateMat(:, 2);
load('upa_t256r16k8s2c4_mmwave.mat')
rate_bd_spa4 = rateMat(:, 2);
figure
hold on
plot(SNR, abs(rate_bd), 'k-*', 'LineWidth', lw, 'MarkerSize', ms)
plot(SNR, abs(rate_bd_fnorm), 'b--', 'LineWidth', lw, 'MarkerSize', ms)
plot(SNR, abs(rate_bd_spa2), 'r^-.', 'LineWidth', lw, 'MarkerSize', ms)
plot(SNR, abs(rate_bd_spa4), 'rv-.', 'LineWidth', lw, 'MarkerSize', ms)
hold off
legend('Traditional BD', 'Hybrid BD (1-norm)', ...
'Sparse precoding&combining (2 RF chains) [15]', 'Sparse precoding&combining (4 RF chains) [15]')
xlabel('SNR (dB)')
ylabel('Sum spectral efficiency (bps/Hz)')
grid