Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. M = 4;
  2. alphabit = modem.qammod('M', M ) ; %QAM modulation
  3. mod = transpose(modulate( alphabit , (0:M-1)));
  4. avg = mod'*mod / M ; % average power of constellation points
  5. mod = mod / sqrt(avg); % to make E[x^t x ] = 1
  6. H = hadamard(4); % The walsh code generation
  7. H_use = H(:,2); %using the second column for spreading.
  8. S_coded = kron(mod,H_use); % Spread the modulated data mod over the walsh code
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement