Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. A = 1;
  2. M = 4;
  3. N = 64;
  4.  
  5. k = [0:(M-1)];
  6. x=[ones(1,M) zeros(1,N-M)];
  7. figure;
  8. subplot(311)
  9. plot(x, '.', 'MarkerSize', 12)
  10. xlabel('\itn')
  11. ylabel('\itx{(\itn)}')
  12.  
  13. [X,Ax,phix]=fnDFT(x);
  14.  
  15. subplot(312)
  16. plot((0:N-1),Ax)
  17. subplot(313)
  18. plot((0:N-1),phix)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement