SHARE
TWEET

Untitled

a guest May 22nd, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. d1=322519174; % id of omer sassoni
  2. d1=[ de2bi(d1) 0 0 0 ]; % id in binary + 000 to make it length of 32
  3. d2=322213208; % id of ofek poraz
  4. d2=[ de2bi(d2) 0 0 0 ]; % id in binary + 000 to make it length of 32
  5. d = [ d1 d2 ]; % merge them
  6. s = d; %
  7. subplot(2,1,1);
  8. stem(d);
  9. d = 0.322519174 + 0.322213208; % this our id
  10. for v = 0
  11. h= [0.9 0.8 -0.7 -0.6 (d/10)];
  12. x = s;
  13. x = transmitter(x,v);
  14. t = CyclicPrefix(x,v);
  15. t = ova(t,h);
  16. z = RemoveCyclicPrefix(t,v);
  17. H = fft(h,64);
  18. H=diag(H); % Create diagonal matrix
  19. after = [];
  20. for i = 1:10 % just for doing it for any symbol
  21. z_i = z((64*(i-1)+1):64*i); % cut the symboles
  22. Z = fft(z_i);
  23. Z = transpose(Z); % doing the transponse
  24. convolve_deleter = H'*Z;
  25. after =[after QPSK_decoder(convolve_deleter)];
  26. end
  27. subplot(2,1,2)
  28. stem(after - repmat(s,1,20))
  29. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top