Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. x = [0.7+0.7i; 0.70-0.7i; 0.7i+0.7i; -0.7+0.7i]; %generate signal x
  2. h = (randn(Nr,Nt) + 1j.*randn(Nr,Nt))/sqrt(2); %Generate 4x4 channel
  3. code = hadamard(4) %generate walsh code
  4. x_s = kron(x,cod(:,1)) %spread the signal x with one walsh code
  5. r = reshape(h*reshape(x_s,4,[])',[],1); % the received signal with AWGN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement