Files
Massive_MIMO_Graduation_Des…/Code/Matlab/setpar.m
T

29 lines
749 B
Matlab

function [ par ] = setpar
par.M = 24; % number of TX/RX antennas
par.Nrf = 4; % number of RF chains
par.Ns = 1; % number of data streams
par.fc = 4.9e9; % system bandwidth
par.Et = 1; % power
par.Er = 1;
%%----------------------------------ULAs-----------------------------------
par.labmda = 3e8/par.fc;
a = [0:43:11*43]';
b = 11*43 + 63;
c = 11*43 + 63 + [43:43:11*43]';
par.delta_d = 1e-3*[a;b;c];
phi = [-355, -240, -275, -160, -195, -80, -115, 0].';
par.pos = exp(1j*phi);
% PS network
par.K1 = [1 1 1 1; 0 0 0 1; 1 1 1 1];
par.K2 = [1 1; 0 1];
%%--------------------discrete frequency space-----------------------------
par.diff_p = 0.05; % total discreted points
par.theta = round(-90:par.diff_p:90, 6);
end