daily pastebin goal
14%
SHARE
TWEET

IIR - Zadanie 1

a guest May 17th, 2018 113 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fpass = 2000;
  2. fstop = 2700;
  3. bpass = 0.01;
  4. bstop = 0.1;
  5.  
  6.  
  7.  
  8. E = (2*sqrt(bpass))/(1-bpass);
  9. A = (1+bpass)/bstop;
  10. Ap = -10*log10(1/(1+(E^2)));
  11. As = -10*log10(1/(A^2));
  12.  
  13. [n, Wn] = buttord(2*pi*fpass,2*pi*fstop,Ap,As,'s');
  14. [b, a] = butter(n, Wn, 's');
  15.  
  16. freqs(b,a);
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