Home > hfrc > matlab > @HFRC > sortT.m

sortT

PURPOSE ^

SORTT - this function sorts data rows of an HFRC object in order of

SYNOPSIS ^

function [ hfrc, i, dt ] = sortT( hfrc, tt )

DESCRIPTION ^

 SORTT - this function sorts data rows of an HFRC object in order of
 time.  Useful after a concatenation.

 Usage: [ hfrc2, indice ] = sortT( hfrc );
        [ hfrc2, indice, dt ] = sortT( hfrc, time );

 the indice output argument may be left off.  If time is included, then
 the object will be sorted by distance from that time.  In this case, a
 third output argument is available with the difference between that
 time and the time of the CODAR map.  This will be a signed difference
 even though the object is sorted by the absolute value.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

     $Id: sortT.m,v 1.6 2003-06-17 02:05:38 dmk Exp $    

 Copyright (C) 2001 David M. Kaplan
 Licence: GPL

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Mon 18-Dec-2006 07:26:46 by m2html © 2003