上传文件至「Code/Matlab」

This commit is contained in:
david1465833828
2026-05-07 11:21:04 +08:00
parent eef503f34d
commit fc8794934e
3 changed files with 324 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
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