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

File: <base>/sources/Rodrigues/procuraralternons.m (689 bytes)
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 <rapr@fct.unl.pt>
#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