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

📄 channelgenerator2.m

📁 Link & System-Level Wireless OFDM System Simulator Version
💻 M
字号:
%The multipath channel matrix generator
%Using rayleighchan function in MATLAB
%chnums is the number of channel realizations
%fd is the Doppler frequency
%divn is the number of diversity branches
%t_rms is the delay spread in us
%The output is matrix ch, for channel impulse response
%by Yuanye Wang
%CTIF, Aalborg University
%yywang@kom.aau.dk
%31-07-2006
%clear all;close all;
%clc;
%bug fixed for AWGN, yy on 22-October-2007
function ch = channelgenerator2(t_rms,fd,sampling_rate,N,cp_l,BW,chnums,divn)
if t_rms==0 && fd ==0,
    ch = ones(1,chnums,divn);
else
    Ch=raych2(chnums*divn,fd,t_rms,sampling_rate,N,cp_l,BW);
    for i=1:divn
        ch(:,:,i)=Ch(:,(i-1)*chnums+1:i*chnums);
        %save (sprintf('ch%d',i),'ch');
    end
end

⌨️ 快捷键说明

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