Detecting and Quantifying T-Wave Alternans: The PhysioNet/Computing in Cardiology Challenge 2008 1.0.0

File: <base>/sources/Rodrigues/spectrum.m (467 bytes)
function wabs=spectrum(todossegmentos,numamostraspsegmento,NUMbatidas)


#spectrum.m returns the absolute value of the fft of the matrix 'todossegmentos' wich contains on each column the st-t segment of a beat 
#Copyright (C) 2008 Rui Rodrigues <rapr@fct.unl.pt>
#This software is released under the terms of the GNU General Public License (http://www.gnu.org/copyleft/gpl.html)

w=fft(todossegmentos);

wabs=abs(w(1:NUMbatidas/2*numamostraspsegmento));

endfunction