Computing DFT and DTFT of a 12-point sequence in MATLAB

  • Context: MATLAB 
  • Thread starter Thread starter louie
  • Start date Start date
  • Tags Tags
    Dft Dtft Matlab
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 26K views
louie
Messages
10
Reaction score
0
I'm considering the 12 –point sequence x[n] which is defined as x[n] = {1, 2, 3, 4, 5, 6, 6, 5, 4, 3, 2, 1}.

I'd like to use Matlab to find the DFT (X[k] of x[n]) and DTFT (X(e^jw) of x[n]).

I realize that the DFT is sampled version of DTFT, and I want to show this graphically using Matlab, but I'm not too familar with Matlab's syntax.

Thanks in advance,

Louie
 
Physics news on Phys.org
I need help on the exact same question as well. Can any1 help?
 
hi. i got the same problem. i don't know why your question has become my assignment question and how my prof came across it.