1
$\begingroup$

I would like to add my question to the post How to use “Filter” matlab function to apply channel to signal?, but I don't have permission to do that.

The user @Anna Koroleva discussed with @Enginner the Matlab function "rayleighchan". Usually, I am using outputs of the function as filter(h,s) but there they discussed that it is possible to fill outputs in the matrix.

How to fill PathGains in the matrix? Could you please give me an example of how to do it?

EDIT 1:

I have wrote a script to simulate user @Engineer suggestion :

N=4; Nr=2; Nt=2
h = rayleighchan(Ts, Fd, tau, pdb);
chan = zeros(N,Nr, Nt);
ofdm_chan = zeros(N,Nr, Nt);
for k=1:N
    chan(:,k) = filter(h,ones(N,1));
end

But it doesn't work. Should I implement in another way?

$\endgroup$
  • $\begingroup$ Calling rayleighchan gives you a randomly generated channel coefficient, so for a $M \times N$ channel matrix, you could call rayleighchan $M*N$ times $\endgroup$ – Engineer Nov 30 '19 at 13:19
  • $\begingroup$ First, you don't need to use rayleighchan. You could just generate the random variables yourself. Second, why do you use filter? What is your system model? $\endgroup$ – Engineer Dec 4 '19 at 13:41
  • $\begingroup$ @Engineer I was using the same system as in linked post. MIMO $\endgroup$ – user36610 Dec 5 '19 at 7:27
  • $\begingroup$ @Engineer I was thinking It is interesting post and would like to try to implement such things. $\endgroup$ – user36610 Dec 5 '19 at 7:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.