MATLAB and Mathematica have different FFT normalization parameters. This is easy to change in Mathematica with the FourierParameters ->
argument, but anything having to do with this in MATLAB seems to have been deprecated, or only working for the non-discrete case. So, I want to try and perform operations on my MATLAB FFT function to have it match the Mathematica one.
I start with fft([1 1 2 2 1 1 0 0])
in MATLAB:
Then, exploring with the parameters in Mathematica:
Aha! So, the Mathematica parameters, {1, 1}
, give me the values I got from MATLAB, while the Mathematica parameters {0, 1}
, that are used for default Mathematica FFT behavior, seem to be scaling those of {1, 1}
by a factor of (sqrt(2/pi)/2)
.
But oh no, applying that factor in MATLAB gives me
which is close to, but not quite, the data I want. How can I replicate this correctly in MATLAB?