Data processing in the BIOSIG toolbox, This functions can be used as template as well as a wrapper around different signal processing methods. [Y,Zf] = processing(MODE,X,Zi) X input signal Zi input status (optional), initial condition if empty or not available, this initializes the method Y output signal Zf final condition MODE is a struct and determines the signal processing method MODE = {'ECG_envelope',Fs} used for QRS-detection [1] {'ECG_envelope',Fs,Threshold} used for QRS-detection [1] 'xyz' -none- Reference(s): [1] M.-E. Nygards, L. S�nmo, Delineation of the QRS complex using the envelope of the e.c.g Med. & Biol. Eng. & Comput., 1983, 21, 538-547.