-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsystemModelParameters.m
More file actions
57 lines (55 loc) · 1.33 KB
/
systemModelParameters.m
File metadata and controls
57 lines (55 loc) · 1.33 KB
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
%% Parameters
mc_runs = 4000;
% M = 8; % AP
% K = 6; % Users
% Nw = 8;
% Nh = 8;
% N = Nw*Nh; % RIS
% LOS = 3; % Number of LOS paths
M = 4; % AP
K = 3; % Users
% M = 1; % AP
% K = 1; % Users
% Nw = 10;
% Nh = 10;
% Nw = 8;
% Nh = 8;
Nw = 10;
Nh = 10;
N = Nw*Nh; % Number of RIS elements
LOS = 10; % Number of LOS paths
B = N+1; % Number of RIS transmission blocks
PdBm = 40;
NdBm = -170*180/1000; % -170 dBm/Hz noise power spectral density 180 kHz bandwidth
SNRdB = PdBm - NdBm;
% SINRdB = 0;
% channel_type = 'unstructured';
channel_type = 'geometric';
d_ur = 2; % meters
a_ur = 2.8;
d_ra = 50; % meters
a_ra = 2.8;
d_ua = sqrt(d_ur^2 + d_ra^2);
a_ua = 3.5;
pl = @(d,a) -30*d^-a;
g_ur = -pl(d_ur,a_ur); % User-RIS gain
g_ra = -pl(d_ra,a_ra); % RIS-AP gain
g_ua = -pl(d_ua,a_ua); % Direct-Path gain
% CH_err = 0;
CH_err = 10^(-45/10);
% CH_err = 10^(-30/10);
max_AO_iterations = 100;
% Generate pilot scheme based on energy or power constraint: use E or P
% pilot_scheme = "S1P"; % Scheme 1: Simultaneous transmission
% pilot_scheme = "S2P"; % Scheme 2: Nonsimultaneous transmission
% B_list = N+1:-1:25;
% B_list = N+1:-1:35;
% B_list = N+1:-1:13;
% B_list = N+1:-1:7;
% B_list = N-10:-1:N-10;
% SNRdB_list = 0:5:30;
% SNRdB_list = 0:5:40;
% Nw_list = 2:1:5;
% Nh_list = Nw_list;
% Nh_list = 10.*ones(1,length(Nw_list));
% N_list = Nw_list .* Nh_list;