Home > data-analysis > manip > cevent > cevent_sort_by_time.m

cevent_sort_by_time

PURPOSE ^

Sorts the cevent according to a specified time column

SYNOPSIS ^

function results = cevent_sort_by_time(cevent_in, refer_column)

DESCRIPTION ^

 Sorts the cevent according to a specified time column

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function results = cevent_sort_by_time(cevent_in, refer_column)
0002 % Sorts the cevent according to a specified time column
0003 
0004 if refer_column > 2
0005     error('Invalid REFER_COLUMN value!');
0006 end
0007 
0008 [temp_v temp_idx] = sort(cevent_in(:, refer_column));
0009 results = cevent_in(temp_idx, :);

Generated on Tue 23-May-2017 20:00:55 by m2html © 2005