channel.m
来自「3 MATLAB functions for simulation of OFD」· M 代码 · 共 16 行
M
16 行
function [ch] = channel(amps,delays,bandwidth,channel_length)% ch is FIR filter response% amps is channel amplitudes (energy)% delays is channel tap delays (in microseconds)% bandwidth is system bandwidth (e.g. sampling frequency) in MHzamps = amps/sum(amps);k = floor(-channel_length/2):floor(channel_length/2);a = sqrt(amps/2) .* (randn(1,length(amps)) + j*randn(1,length(amps)));ch = zeros(1,length(k));for l=1:length(a) ch = ch + a(l)*sinc(k-delays(l)*bandwidth);end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?