This function performs normalization of the response function.
void fft_normalize_response( vector & vecResponse )
void
Prior to compilation, load fft_utils.c to the workspace by executing the following LabTalk command:
Run.LoadOC("Originlab\fft_utils.c", 16);
To retain fft_utils.c in the workspace for successive sessions, drag and drop the file from the Temporary folder to the System folder.
EX1
#include <fft_utils.h> void fft_normalize_response_ex1() { vector vsig = {0, 0, 0, 1, 1, 0, 0, 0}; fft_fft_real(8, vsig); fft_normalize_response(vsig); }
fft_utils.h