function [valores inicios]=procuraralternons(sinal,batidas,freq,NUMbatidas) #procuraralternons.m in one lead of one ecg call several times "quantificaralternons.m" to get several values of magnitude of alternons (the highest will be chosen) #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) valores=[]; inicios=[]; [l n]=size(batidas); limite=l-NUMbatidas; for i=1:10:limite valor=quantificaralternons(sinal,batidas,i,freq,NUMbatidas); if(valor>3) valores=[valores,valor]; inicios=[inicios,i]; endif endfor endfunction