Advertisement
Ostu

Untitled

May 26th, 2021
391
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.34 KB | None | 0 0
  1. %% Pierwsze zakłócenie
  2. Wpc21=[605 615]/(0.5*fs)
  3. Wsc21=[595 625]/(0.5*fs)
  4. Rpc21=3;
  5. Rsc21=45;
  6. [nc21,Wnc21]=cheb2ord(Wpc21,Wsc21,Rpc21,Rsc21)
  7. [bc21,ac21]=cheby2(nc21,Rsc21,Wnc21,'stop')
  8. GC21=tf(bc21,ac21,1/fs)
  9. figure(4)
  10. options = bodeoptions;
  11. options.FreqUnits = 'Hz';
  12. options.FreqScale = 'linear'
  13. bode(GC21, options)
  14. xlim([0 4700])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement