channel_gen_ng.m

来自「R. Lin and A.P. Petropulu, 揂 New Wireles」· M 代码 · 共 35 行

M
35
字号
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Generate channel coefficients for the nodes in the system where
% all the nodes are sharing the whole bandwidth
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

close all; clear all;
v=3;  %speed of mobile
fd=v/(3*10^8)*5.2*10^9; %doppler frequency
%f=6*10^6*2; %data rate
f=128*10^3*2;
%f=128*10^3;
T=1/f;

J = 32; %32; % total number of users                 
N = 424; % length of packet   

M = 20000;

%....Channel matrix between nodes and BS........
for ii=1:J
    HA(ii,:) = Gen_Jake2(fd, T*N, M+J, randseed(ii*16+153));  %between mobile and BS
end

%... Channel matrix between nodes
for ii=1:J
    HH(ii, ii, :)= ones(1, M+J);
    for jj=ii+1:J
        HH(ii,jj,:) = Gen_Jake2(fd, T*N, M+J, randseed(ii*164+jj*291+37822)); %between mobiles
        HH(jj,ii,:) = HH(ii,jj,:);
    end
end


save channel_ng HA HH;
clear all;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?