Advertisement
Guest User

Untitled

a guest
May 23rd, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.34 KB | None | 0 0
  1. clf; clear; clc;
  2. %%sekcja 4
  3. f0 = 1.9;
  4. B = 0.0001;
  5. fp1 = f0-0.001;
  6. fp2 = f0+0.001;
  7. fs1 = f0-0.005;
  8. fs2 = f0+0.005;
  9. A = 60;%db
  10. di1 = 0.5;%db
  11.  
  12. fs = 0.3;
  13. war_x = 1/3;
  14. Bt = fs2 - fs1
  15.  
  16. m = (2*f0 - Bt)/fs;
  17. m = ceil(m) + 1
  18. fsp = (2*f0-B)/m
  19.  
  20. bits = (A - 4.77 - 10*log10(war_x))/6.02
  21. bits = ceil(bits)
  22. SNR = 6.02*bits + 4.77 + 10*log10(war_x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement