Advertisement
Ostu

Untitled

May 26th, 2021
327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.34 KB | None | 0 0
  1. %% Drugie zakłócenie
  2. Wpc22=[2475 2490]/(0.5*fs)
  3. Wsc22=[2470 2495]/(0.5*fs)
  4. Rpc22=3;
  5. Rsc22=45;
  6. [nc22,Wnc22]=cheb2ord(Wpc22,Wsc22,Rpc22,Rsc22)
  7. [bc22,ac22]=cheby2(nc22,Rsc22,Wnc22,'stop')
  8. GC22=tf(bc22,ac22,1/fs)
  9. figure(4)
  10. options = bodeoptions;
  11. options.FreqUnits = 'Hz';
  12. options.FreqScale = 'linear'
  13. bode(GC22, options)
  14. xlim([0 4700])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement