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}.(adsbygoogle = window.adsbygoogle || []).push({});

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 Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# MatLab and DFT and DTFT

**Physics Forums | Science Articles, Homework Help, Discussion**