fellpz

[PDS]função ideal_lp

Nov 22nd, 2018
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.20 KB | None | 0 0
  1. function hd = ideal_lp(wc, M)
  2. % Ideal low pass filter
  3. % we = cutoff frequency
  4. % M = length of the ideal filter
  5. alpha = (M - 1)/2
  6. n = [0:(M-1)];
  7. m = n - alpha + eps;
  8. hd = sin(wc*m)./(pi*m);
Advertisement
Add Comment
Please, Sign In to add comment