- #1
yongs90
- 6
- 0
Homework Statement
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
Homework Equations
View attachment Matlab Code.doc
View attachment Questions.PDF
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??