Advertisement
Ostu

Untitled

May 26th, 2021
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.30 KB | None | 0 0
  1. %% Filtr tłumiący do 170Hz
  2. Wpc=170/(0.5*fs);
  3. Wsc=140/(0.5*fs);
  4. Rpc=3;
  5. Rsc=40;
  6. [n1,Wn1] = cheb1ord(Wpc,Wsc,Rpc,Rsc)
  7. [b1,a1] = cheby1(n1,Rpc,Wn1,'high')
  8. Gc=tf(b1,a1,1/fs)
  9. options = bodeoptions;
  10. options.FreqUnits = 'Hz';
  11. options.FreqScale = 'linear'
  12. figure(3)
  13. bode(Gc, options)
  14. xlim([0 4700])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement