Advertisement
Guest User

matlab - e2

a guest
Nov 12th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. f1 = [-2.5:0.001:2.5];
  2. y1 = 4*sinc(2*f1).^2 - (sinc(f1)).^2;
  3. t = [-4:0.2:4];
  4. subplot(2,1,1)
  5. plot(f1, abs(y1))
  6. subplot(2,1,2)
  7. y2 = [zeros(1,10), [0:0.2:1], ones(1,9), [1:-0.2:0], zeros(1,10)];
  8. plot(t,y2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement