Home > data-analysis > manip > event > event_number.m

event_number

PURPOSE ^

event_number counts the number of occurrences of the given event

SYNOPSIS ^

function e_num = event_number(event)

DESCRIPTION ^

event_number counts the number of occurrences of the given event
  Usage: event_number(EVENT_DATA)
  example: event_number([1 5; 10 20]) % returns 2.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function e_num = event_number(event)
0002 %event_number counts the number of occurrences of the given event
0003 %  Usage: event_number(EVENT_DATA)
0004 %  example: event_number([1 5; 10 20]) % returns 2.
0005 e_num = size(event,1);
0006

Generated on Wed 24-May-2017 00:00:56 by m2html © 2005