Comments on: A Pedagogical Tool for Fourier Transforms https://blogs.mathworks.com/loren/2009/02/02/a-pedagogical-tool-for-fourier-transforms/?s_tid=feedtopost Loren Shure is interested in the design of the MATLAB language. She is an application engineer and writes here about MATLAB programming and related topics. Tue, 30 May 2017 16:51:52 +0000 hourly 1 https://wordpress.org/?v=6.2.2 By: Loren https://blogs.mathworks.com/loren/2009/02/02/a-pedagogical-tool-for-fourier-transforms/#comment-31445 Mon, 21 Jun 2010 21:40:26 +0000 https://blogs.mathworks.com/loren/2009/02/02/a-pedagogical-tool-for-fourier-transforms/#comment-31445 Scott-

As for the issue with the help example, I am not sure. What are you plotting, abs(fft) or fft^2? That could make the units on the plot look wrong as well. You should probably contact support (link on the right of the blog) and they may have an explanation.

To answer your second question, the normalization of the FFT is arbitrary and many books use different normalizations. It’s just important that the forward and inverse normalizations are paired correctly.

–Loren

]]>
By: Scott https://blogs.mathworks.com/loren/2009/02/02/a-pedagogical-tool-for-fourier-transforms/#comment-31444 Mon, 21 Jun 2010 21:11:49 +0000 https://blogs.mathworks.com/loren/2009/02/02/a-pedagogical-tool-for-fourier-transforms/#comment-31444 Hello,
This question pertains to the sample code segment below which is provided in MATLAB help R2009a when searching ‘FFT’

The question pertains to line 12 below:
I don’t understand why the fft() function is divided by L and not (2*L).
As a sanity check I tried using this script for a simple DC signal with amplitude 2, Sample rate (Fs) = 102400 Hz,
t = 0:1/Fs:1
%%%%%%
Fs = 102400; t = 0:1/Fs:1; x = 2*ones(length(t),1);
%%%%%%
I expected to see an FFT plot with a peak magnitude of 2 at 0 Hz. Instead it shows a peak of 4. In order to obtain the corresponding time domain amplitude in the frequency domain, I simply modified line 12 to read:

This returns the correct amplitude.

Also out of curiosity, could someone provide some insight as to why this division by the record length was not incorporated into the fft function?

]]>
By: Kamil Wojcicki https://blogs.mathworks.com/loren/2009/02/02/a-pedagogical-tool-for-fourier-transforms/#comment-30011 Tue, 03 Feb 2009 12:44:36 +0000 https://blogs.mathworks.com/loren/2009/02/02/a-pedagogical-tool-for-fourier-transforms/#comment-30011 Hi Loren,

In the recent years open courseware (OCW) has become very popular. Thanks to OCW anyone can freely access pedagogical materials in the form of video lectures from top universities presented by experienced and achieved researchers.

I can recommend the following very useful resources for learning about Fourier transforms (as well as many other topics):

Linear algebra lectures by Prof. Gilbert Strang (see lecture 26 for discussion about complex matrices and the fast Fourier transform).

The OCW from Standord University and in particular: the Fourier transform and its applications lectures.

Another popular resource is located at videolectures.net.

Hope this is useful to others, happy learning :)

Kamil

]]>
By: Quan https://blogs.mathworks.com/loren/2009/02/02/a-pedagogical-tool-for-fourier-transforms/#comment-30009 Mon, 02 Feb 2009 23:51:59 +0000 https://blogs.mathworks.com/loren/2009/02/02/a-pedagogical-tool-for-fourier-transforms/#comment-30009 Hey Loren,

I wrote a little bit about Fourier last year on my blog. Some people have found it useful, and hopefully your readers will too!

http://blinkdagger.com/fourier

Quan

]]>