MATLAB: Frequency Selective Channel Coefficients in MATLAB

channelcoeffiecientsgenerate

Hello all
How can I generate the following channel coefficients in MATLAB, where these coefficients correspond to a frequency selective channel:
f_m=sum_p h_p exp(-j*2*pi*fc*tau_p) g(mTs-tau_p), m=0,1,…,L-1
where g(t) is rectangular pulse of support duration Ts, and h_p, tau_p and fc are given.
Thanks in advance

Best Answer

here is a start :
Fs=800;
fc=300; % Hz
Ts=1/Fs;
L=400;
t=0:Ts:(L-1)*Ts;
d=4; % four signals per example,
tau is dependent on physical parameters, distance and coordinates, but i consider here a linear progressive phase, and the signals are sinusoidal :
tau=(0:d-1);
fm=0;
for p=1:d
fm=fm+exp(-j*2*pi*fc*tau(p))*sin(2*pi*t);
end
figure; plot(real(fm));
your assignment now is to replace the sin signals with the rectangular ones .