-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathRobust_CSI.m
More file actions
22 lines (19 loc) · 767 Bytes
/
Copy pathRobust_CSI.m
File metadata and controls
22 lines (19 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
function H = Robust_CSI(H1, H3, H5, H7, H9, rk1, rk3, rk5, rk7, rk9, Num_UE, Num_BS_Antennas)
% Predict CSI in current time slot
Rk = zeros(5, 5);
for m = 1 : Num_UE
for n = 1 : Num_BS_Antennas
Rk = Rk + [H9(m,n); H7(m,n); H5(m,n); H3(m,n); H1(m,n)] * [H9(m,n); H7(m,n); H5(m,n); H3(m,n); H1(m,n)]';
end
end
Rk = Rk / (Num_UE * Num_BS_Antennas);
H = zeros(Num_UE, Num_BS_Antennas);
seita = zeros(Num_UE, 1);
for m = 1 : Num_UE
rk = [rk9(m); rk7(m); rk5(m); rk3(m); rk1(m)];
for n = 1 : Num_BS_Antennas
H(m,n) = rk' * Rk^-1 * [H9(m,n); H7(m,n); H5(m,n); H3(m,n); H1(m,n)];
end
seita(m) = (1 - rk' * Rk^-1 * rk);
end
end