Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: The DFT of a Rectangular Window & The Effects of Zero Padding a Signal
Replies: 1   Last Post: Jan 19, 2013 1:36 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View  
Greg Heath

Posts: 5,696
Registered: 12/7/04
Re: The DFT of a Rectangular Window & The Effects of Zero Padding a Signal
Posted: Jan 19, 2013 1:36 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"PUPR" wrote in message <kdc5ko$l5m$1@newscl01ah.mathworks.com>...
> Hello, I'm new at MatLab. I need help solving the following examples. I use the command "doc" to access the library, but I'm not shore if it is correct how I implement the commands. I try to solve the first example:
>
> 1) Plot the 4-point magnitude DFT of the following pulse w[n] = [0,1,2,3]
> (Use the FFT command in MATLAB.)
>
> dft_data = [0,1,2,3];
> FF_T=fft(dft_data);
> m = abs (FF_T);
> stem(m);
>
> 2) Conveniently zero pad the signal in order to plot the 8-point DFT, the 16-point DFT and the 128-point DFT.


Try

help fft

Greg



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2013. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.