-
Notifications
You must be signed in to change notification settings - Fork 0
/
figures.m
164 lines (149 loc) · 3.99 KB
/
figures.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
clc
clear
close all
load("data\results_article.mat") %5GNR 1024
clear label labe2
itnr="{\it N_r}";
itnp="{\itN_p}";
itdp="{\it d_p}";
itn="{\it N}";
itdr="{\it d_r}";
lineStyle=["-", "--",":"];
marker=["o","^"];
color=["#0072BD", "#D95319", "#7E2F8E"];
geoName=["c-URA","d-URA","d-ELSA"];
%% FIGURE 3 of the article
% figure 3(a)
figure
a=1; k=1; i=1;
plot((nR(k)^2)*(nP(k,:).^2),squeeze(r_mat(a,k,i,:)),'-*',Color=color(a))
hold on
label(i,k,a)=geoName(a);
for a=2:nG
for k=1:length(nR)
for i=1:length(dP)
plot((nR(k)^2)*(nP(k,:).^2),squeeze(r_mat(a,k,i,:)),lineStyle(k)+marker(i),Color=color(a))
label(i,k,a)=geoName(a)+","+itnr+"="+string(nR(k)^2)+","+itdp+"="+sprintf("%0.1f",dP(i)*lambda)+" m";
end
end
end
hold off
ylabel('Coverage radius (km)')
grid on
box on
ylim([0,25])
xlim([0,1200])
label=reshape(label,[1,nG*length(nR)*length(dP)]);
label=rmmissing(label);
xlabel('Total number of radiating elements ({\itN})');
legend(label,Location="eastoutside")
%
% figure 3(b)
figure
ylabel('Throughput (Mb/s)')
ylim([0,300])
yticks(0:75:300)
hold on
a=1; k=1; i=1;
plot((nR(k)^2)*(nP(k,:).^2),squeeze(mbps1_mat(a,k,i,:)),'-*',Color=color(a))
for a=2:nG
for k=1:length(nR)
for i=1:length(dP)
plot((nR(k)^2)*(nP(k,:).^2),squeeze(mbps1_mat(a,k,i,:)),lineStyle(k)+marker(i),Color=color(a))
end
end
end
yyaxis right
a=1; k=1; i=1;
ylabel('SNR (dB)')
ylim([-10,30])
yticks(-10:10:30)
xlim([0,1200])
plot((nR(k)^2)*(nP(k,:).^2),squeeze(SNR(a,k,i,:)),'-x',Color='#196f3d')
hold off
% title('(b)','FontWeight','Normal')
grid on
box on
ax = gca;
ax.YAxis(1).Color = 'k';
ax.YAxis(2).Color = '#196f3d';
xlabel('Total number of radiating elements ({\itN})')
label(10)='SNR';
legend(label,Location="eastoutside")
% figure 3(c)
figure
a=1; k=1; i=1;
semilogy((nR(k)^2)*(nP(k,:).^2),squeeze(thpDensity1_mat(a,k,i,:)),'-*',Color=color(a))
hold on
for a=2:nG
for k=1:length(nR)
for i=1:length(dP)
semilogy((nR(k)^2)*(nP(k,:).^2),squeeze(thpDensity1_mat(a,k,i,:)),lineStyle(k)+marker(i),Color=color(a))
end
end
end
hold off
ylabel('Throughput area density $\left(\frac{\mathrm{Mb/s}}{\mathrm{km^2}}\right)$','Interpreter','latex')
ylim([1e-2,1e3])
yticks([1e-2,1e-1,1e0,1e1,1e2,1e3])
xlim([0,1200])
grid on
ax = gca;
ytickformat('%.0f'); % Set format to decimals
ax.YAxis.Exponent = 0; % Remove exponent
box on
xlabel('Total number of radiating elements ({\itN})')
label(10)='SNR';
legend(label(1:9),Location="eastoutside")
%% FIGURE 5 of the article
% figure 5(b)
figure
geoName2=["c-URA (Noise only)","d-URA","d-ELSA"];
a=1; k=1; i=1;
semilogy((nR(k)^2)*(nP(k,:).^2),squeeze(thpDensity1_mat(a,k,i,:)),'-*',Color=color(a))
label2(i,k,a)=geoName2(a);
hold on
for a=3:3
for k=1:length(nR)
for i=1:length(dP)
semilogy((nR(k)^2)*(nP(k,:).^2),squeeze(thpDensity2_mat(a,k,i,:)),lineStyle(k)+marker(i),Color=color(a))
% label2(i,k,a)=sprintf("%s,%s=%d,%s=%0.1f m \nSINR= %1d dB",geoName2(a),itnr,nR(k)^2,itdp,dP(i)*lambda,SINR_lim);
label2(i,k,a)=sprintf("%s,%s=%d,%s=%0.1f m",geoName2(a),itnr,nR(k)^2,itdp,dP(i)*lambda);
end
end
end
hold off
label2=reshape(label2,[1,nG*length(nR)*length(dP)]);
label2=rmmissing(label2);
ylabel('Throughput area density $\left(\frac{\mathrm{Mb/s}}{\mathrm{km^2}}\right)$','Interpreter','latex')
ylim([1e-2,1e1])
xlim([0,1200])
grid on
ax = gca;
% Set format to decimals
ytickformat('%.0f');
% Remove exponent
ax.YAxis.Exponent = 0;
box on
xlabel('Total number of radiating elements ({\itN})');
legend(label2,Location="eastoutside")
% figure 5(a)
figure
for k=1:length(nR)
hold on
for i=1:length(dP)
plot((nR(k)^2)*(nP(k,:).^2),squeeze(iB_mat(k,i,:)),lineStyle(k)+marker(i),Color=color(a))
end
end
hold off
grid on
ax = gca;
ytickformat('%.0f');
ax.YAxis.Exponent = 0;
box on
ylabel('Number of interfering beams')
xlim([0,1200])
ylim([0,700])
yticks(0:100:700)
xlabel('Total number of radiating elements ({\itN})')
legend(label2(2:end),Location="eastoutside")