1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

[Matlab] using rayleighchan.m

  1. Sep 7, 2011 #1
    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

    Plot.jpg
    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??
     
  2. jcsd
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted



Similar Discussions: [Matlab] using rayleighchan.m
  1. Use of tic toc in MATLAB (Replies: 12)

Loading...