# MATH FFT

Compatible with:
DOS Maximite CMM MM150 MM170 MM+ MMX Picromite ArmiteL4 Armite F4 ArmiteH7 Picomite CMM2

Syntax:
MATH FFT xxx

Description:

MATH FFT signalarray!(), FFTarray!()
Performs a fast fourier transform of the data in “signalarray!”.
"signalarray" must be floating point and the size must be a power of 2 (e.g. s(1023) assuming OPTION BASE is zero)
"FFTarray" must be floating point and have dimension 2*N where N is the same as the signal array (e.g. f(1,1023) assuming OPTION BASE is zero)
The command will return the FFT as complex numbers with the real part in f(0,n) and the imaginary part in f(1,n)

MATH FFT INVERSE FFTarray!(), signalarray!()
Performs an inverse fast fourier transform of the data in “FFTarray!”.
"FFTarray" must be floating point and have dimension 2*N where N must be a power of 2 (e.g. f(1,1023) assuming OPTION BASE is zero) with the real part in f(0,n) and the imaginary part in f(1,n).
"signalarray" must be floating point and the single dimension must be the same as the FFT array.
The command will return the real part of the inverse transform in signalarray".

MATH FFT MAGNITUDE signalarray!(),magnitudearray!()
Generates magnitudes for frequencies for the data in “signalarray!”
"signalarray" must be floating point and the size must be a power of 2 (e.g. s(1023) assuming OPTION BASE is zero)
"magnitudearray" must be floating point and the size must be the same as the signal array
The command will return the magnitude of the signal at various frequencies according to the formula:
frequency at array position N = N * sample_frequency / number_of_samples

MATH FFT PHASE signalarray!(), phasearray!()
Generates phases for frequencies for the data in “signalarray!”.
"signalarray" must be floating point and the size must be a power of 2 (e.g. s(1023) assuming OPTION BASE is zero)
"phasearray" must be floating point and the size must be the same as the signal array
The command will return the phase angle of the signal at various frequencies according to the formula above.

On the ArmiteH7, the format is FFT xxx

Last edited: 25 February, 2021