-
Notifications
You must be signed in to change notification settings - Fork 4
/
plot_mmwave_limitedfeedback.m
49 lines (38 loc) · 1.38 KB
/
plot_mmwave_limitedfeedback.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
%%%%% Plotting
SNR = -40:5:0;
lw = 1.5;
ms = 5;
load('LF-ULA-Nt256-K8-Nr16-Ns1-Lr1-Lt8-Ncls8-Nray10.mat')
rate_bd = rateMat(:, 1);
rate_bd_spa1 = rateMat(:, 2);
rate_bd_1norm = rateMat(:, 3);
rate_limited = rateMat(:, 4);
figure
hold on
plot(SNR, abs(rate_bd), 'k-*', 'LineWidth', lw, 'MarkerSize', ms)
plot(SNR, abs(rate_bd_1norm), 'b--', 'LineWidth', lw, 'MarkerSize', ms)
plot(SNR, abs(rate_bd_spa1), 'r^-.', 'LineWidth', lw, 'MarkerSize', ms)
plot(SNR, abs(rate_limited), 'go-.', 'LineWidth', lw, 'MarkerSize', ms)
hold off
legend('Traditional BD', 'Hybrid BD (1-norm)', ...
'Sparse precoding&combining [15]', 'Limited feedback hybrid precoding [18]')
xlabel('SNR (dB)')
ylabel('Sum spectral efficiency (bps/Hz)')
grid
load('LF-UPA-Nt256-K8-Nr16-Ns1-Lr1-Lt8-Ncls8-Nray10.mat')
rate_bd = rateMat(:, 1);
rate_bd_spa1 = rateMat(:, 2);
rate_bd_1norm = rateMat(:, 3);
rate_limited = rateMat(:, 4);
figure
hold on
plot(SNR, abs(rate_bd), 'k-*', 'LineWidth', lw, 'MarkerSize', ms)
plot(SNR, abs(rate_bd_1norm), 'b--', 'LineWidth', lw, 'MarkerSize', ms)
plot(SNR, abs(rate_bd_spa1), 'r^-.', 'LineWidth', lw, 'MarkerSize', ms)
plot(SNR, abs(rate_limited), 'go-.', 'LineWidth', lw, 'MarkerSize', ms)
hold off
legend('Traditional BD', 'Hybrid BD (1-norm)', ...
'Sparse precoding&combining [15]', 'Limited feedback hybrid precoding [18]')
xlabel('SNR (dB)')
ylabel('Sum spectral efficiency (bps/Hz)')
grid