(adsbygoogle = window.adsbygoogle || []).push({}); 1. The problem statement, all variables and given/known data

Anybody knows how to use rayleighchan.m to accomplished the task given in Questions.pdf, the coding use to solve Questions.pdf is given in Matlab Code.doc. After running the code in Matlab Code.doc in Matlab programme the plot obtained is as shown in Plot.jpg

2. Relevant equations

View attachment Matlab Code.doc

View attachment Questions.PDF

3. The attempt at a solution

n=sqrt(0.5)*randn(1,100001)+ j*sqrt(0.5)*randn(1,100001);

chan = rayleighchan(0.1e-3,100);

a=filter(chan,n);

[c,lags]=xcov(a,'coeff');

lags_new=0.1e-3*lags;

figure(1)

plot(lags,real(c),'--r')

grid on

xlabel('Time Delay (s)')

ylabel('Normalised Autocorrelation')

legend('Simulation')

However, the plotted graph given is not right. Anybody knows how i can check the impulse response of chan (variable name) so that i can compare it with hw_norm (variable name) in Matlab Code.doc??

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Homework Help: [Matlab] using rayleighchan.m

Can you offer guidance or do you also need help?

Draft saved
Draft deleted

**Physics Forums | Science Articles, Homework Help, Discussion**