Plotting Fourier Transform - HELP PLEASE

Consider a pulse of amplitude 1 and time duration 1 second. Sample this pulse at 20 samples/sec for 20 seconds and compute and plot the Discrete Fourier Transform (DFT).
I need the matlab code for this problem. I have not much knowledge of matlab.
Thank you very much

1 Kommentar

Walter Roberson
Walter Roberson am 15 Mär. 2012
http://www.mathworks.com/matlabcentral/answers/8026-best-way-s-to-master-matlab

Melden Sie sich an, um zu kommentieren.

Antworten (5)

Rick Rosson
Rick Rosson am 15 Mär. 2012

0 Stimmen

What have you tried to do so far?
Walter Roberson
Walter Roberson am 15 Mär. 2012

0 Stimmen

Insufficient information about the shape of the pulse.

1 Kommentar

Rick Rosson
Rick Rosson am 15 Mär. 2012
I assume the professor is asking for a rectangular pulse, but as you said, it is impossible to know for sure...

Melden Sie sich an, um zu kommentieren.

Rick Rosson
Rick Rosson am 15 Mär. 2012

0 Stimmen

>> doc fft
>> doc fftshift
>> doc abs
>> doc plot
Rick Rosson
Rick Rosson am 15 Mär. 2012

0 Stimmen

Please check out this online interactive tutorial:
HTH.
Rick

Gefragt:

am 15 Mär. 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by