Advertisement
stiansjogren

kt

Apr 27th, 2017
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. %%%%%% ----------------------The answer part
  2. % a) plot the filter coefficients
  3. rc = rc / sum(rc);
  4. figure, plot(time,rc);
  5. % b)plot the frequency response
  6. freq = 1/T * osr;
  7. Spec = 20*log10(abs(fft(rc)));
  8. figure, plot(linspace(0, freq/2, length(Spec(1:end/2 + 1))), Spec(1:end/2 + 1))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement