How to normalise a FFT of a 3 variable function.

I have this function:
input = exp(-((W-w_o).^2)/deltaW.^2).*exp(-(Kx.^2+Ky.^2)/(deltaK.^2)).*exp(1i.*sqrt((W/c).^2-(Kx.^2+Ky.^2)).*z(j));
this is then fourier transformed:
fourier = fftn(input)
I need to normalise it. Dividing it by length() is not giving good results. Could someone please help!

Answers (3)

Matt J
Matt J on 11 Jul 2019
Edited: Matt J on 11 Jul 2019
To normalize so that the continuous Fourier transform is approximated, multiply by the sampling intervals, dT1*dT2*dT3

7 Comments

The thing is that I was told to "best thing is to calculate the complete norm \int dw d)k_x dk_y ". I do not understand what is meant here. I think my normalisation has to involve triple integration.
If you don't know what the goal is then no one does...
Professor knows but i don't dare to ask again.
Well, maybe this:
F = fftn(input);
F=F/norm(F(:));
Thank you. I am going to try a few things and post the answer that worked.
Maybe also
F=F*sqrt(T1*T2*T3)/norm(F)
where T1,2,3 are the sampling distances.
Thank you so much!

Sign in to comment.

Matt J
Matt J on 11 Jul 2019
Edited: Matt J on 11 Jul 2019
To normalize so that Parseval's equation holds, divide by sqrt(numel(input)).
Matt J
Matt J on 11 Jul 2019
Edited: Matt J on 11 Jul 2019
To normalize so as to obtain Discrete Fourier Series coefficients, divide by N=numel(input).

Asked:

J K
on 11 Jul 2019

Commented:

on 19 Sep 2019

Community Treasure Hunt

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

Start Hunting!