clf

plot(0:.001:189.642,vtrace), hold on
plot(0:.001:189.642,ft_ck,'r')


%f=timewave/1000;
%x=zeros( size(f,1),1 );
%r0=min( tenminilandec_190sec ); r1= max( tenminilandec_190sec );
%hl=line( repmat(f',2,1),[ r0+x' ; r0+((r1-r0)*.2)+x' ] );
%hl=line( repmat(f',2,1),[ -100+x' ; -95+x' ] );

pause

for cc=0:1:199    

    axis([cc cc+1 -100 -20])
    
    %plot(cc:.001:cc+1-.001,tenminilandec(t0:t1))
    %hold on
    %plot(t0:t1,threshwave(t0:t1),'r')
    
    %r0=min( sample(t0:t1) ); r1=max( sample(t0:t1) );
        
    % display psp detected....
    %f=timewave(find(timewave<=t1 & timewave>=t0));
    %x=zeros( size(f,1),1 );
    
    %hold on
    
    %hl=line( repmat(f',2,1),[ r0+x' ; r0+((r1-r0)*.2)+x' ] );

    pause
    
end
