DSPRelated.com
Forums

channel response for Multipath channel

Started by thiy...@yahoo.com September 3, 2009
Hi Everyone.

i have got some problems to plot this multi path transfer function& impulse response.My equation is

H(f)=g(i)*e^-((a0)+(a1)*f^k)*(d(i))*e^-i*(2*pi*f*(d(i)/vp));

i cant get the plot.this is my code

clear;
clc;
k=1;
a0=0;
a1=6.8E-10;

g(1)=0.38;g(2)=0.78;d(1)5;d(2)!6;

vp=3*E8;
e=2.7183;

freq=0:20E6;
time=0.00005:0.2;
%for fP0*K: 20*M
for count=1:length(freq)
for (i=1:2)
H(count)=g(i)*e^-((a0)+(a1)*freq(count)^k)*(d(i))*e^-i*(2*pi*freq(count)*(d(i)/vp));
end
end
Hf*log(abs(H));
[cimp_resp]=ifft(H);
imp_resp=real(cimp_resp);
phase=angle(Hf)

figure;
plot(freq,Hf)
grid on;
title('Amplitude Response');
xlabel ('Frequency');
ylabel('|H(f)| in dB');

plot(freq,phase)
grid on;
title('phase');
xlabel ('Frequency');
ylabel('phase');