⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 channel_gen_ng.m

📁 R. Lin and A.P. Petropulu, 揂 New Wireless Medium Access Protocol Based On Cooperation,擨EEE Trans. on
💻 M
字号:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -