windata-func
Generate window signal based on selected type.
vector windata(int type, int n)
type
n
Return a vector of size n.
// Import the signal data string fname$ = system.path.program$ + "Samples\Signal Processing\fftfilter1.DAT"; impASC fname:=fname$; // Define a range variable for input signal range rSignal = col(2); // Define window size, should be the same as input signal int wSize = rSignal.GetSize(); // Calculate magnitude with DC offset removal and Welch window type col(C) = fftmag(fftc((rSignal - mean(rSignal))* windata(1, $(wSize))));
fftc, fftmag, fftamp