Home > vbmeg > functions > device > trigger_timing > vb_event_start0.m

vb_event_start0

PURPOSE ^

Find time points that event signal changes to the specified value 'status'

SYNOPSIS ^

function ix = vb_event_start0(y,status)

DESCRIPTION ^

 Find time points that event signal changes to the specified value 'status'
 ix = vb_event_start0(y,status)
 y : event signal
 status : status value
 ix : index corresponding to the point 
      'y' changes to 'status' from other value
 
      
 2009-6-11 Masa-aki Sato

 Copyright (C) 2011, ATR All Rights Reserved.
 License : New BSD License(see VBMEG_LICENSE.txt)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function    ix = vb_event_start0(y,status)
0002 % Find time points that event signal changes to the specified value 'status'
0003 % ix = vb_event_start0(y,status)
0004 % y : event signal
0005 % status : status value
0006 % ix : index corresponding to the point
0007 %      'y' changes to 'status' from other value
0008 %
0009 %
0010 % 2009-6-11 Masa-aki Sato
0011 %
0012 % Copyright (C) 2011, ATR All Rights Reserved.
0013 % License : New BSD License(see VBMEG_LICENSE.txt)
0014 
0015 T = length(y);
0016 ix = find( y(2:T) == status & y(1:T-1) ~= status);

Generated on Mon 22-May-2023 06:53:56 by m2html © 2005