SHARE
TWEET

Untitled

a guest May 22nd, 2019 68 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(6,1,1);
  8. stem(d);
  9. title('the trasmitted wave')
  10. d = 0.322519174 + 0.322213208; % this our id
  11. for v = 0:4
  12. h= [0.9 0.8 -0.7 -0.6 (d/10)];
  13. x = s;
  14. x = transmitter(x,v);
  15. t = CyclicPrefix(x,v);
  16. t = ova(t,h);
  17. z = RemoveCyclicPrefix(t,v);
  18. H = fft(h,64);
  19. H=diag(H); % Create diagonal matrix
  20. after = [];
  21. for i = 1:10 % just for doing it for any symbol
  22. z_i = z((64*(i-1)+1):64*i); % cut the symboles
  23. Z = fft(z_i);
  24. Z = transpose(Z); % doing the transponse
  25. convolve_deleter = H'*Z;
  26. after =[after QPSK_decoder(convolve_deleter)];
  27. end
  28. subplot(6,1,v+2)
  29. stem(after - repmat(s,1,20))
  30. title(strcat('error in v = ',num2str(v)));
  31. 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