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?
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?