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 #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