Advertisement
Guest User

Untitled

a guest
Nov 15th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. clear all
  2. close all
  3.  
  4. f=0:44100;
  5. w=2*pi*f;
  6. R1=6.3e3;
  7. R2=6.8e3;
  8. R3=63e3;
  9. C=22e-9;
  10. A0=-R3/(2*R1);
  11. w0=(1/C)*sqrt((R1+R2)/(R1*R2*R3));
  12. m=sqrt((R1*R2)/((R1+R2)*R3));
  13. H = (A0.*2.*m.*j.*w./w0)./(1+2.*m.*j.*w./w0+(j.*w./w0).^2)
  14.  
  15. %figure;
  16. %%semilogx(f,20*log10(abs(H)));
  17.  
  18.  
  19. txt='TURING Les fonctions réalisant les fonctions mathématiques';
  20. txtbin=dec2bin(txt,8)';
  21. txtbin=str2num(txtbin(:))
  22. Fe=44100;
  23. Fsymb=200;
  24. NechparSymb=round(Fe/Fsymb);
  25. sNum=repmat(txtbin,1,NechparSymb);
  26. sNum=sNum';
  27. sNum=sNum(:);
  28. sNum(sNum==0)=0;
  29. t=0:length(sNum)-1;
  30. t=t/Fe;
  31. sinn=sin(2*pi*8000*t);
  32. sNum1=sNum.*sinn';
  33.  
  34.  
  35. figure,plot(sNum1)
  36. hold on,plot(sNum,'r')
  37. t=0:length(sNum)-1;
  38. t=t/Fe;
  39. X=[[t(:)]',[sNum(:)]'];
  40. X=X(:);
  41.  
  42. sinus = sin(2*pi*8000*t);
  43. plot(sinus);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement