Home > hfrc > matlab > utility > find_gaps.m

find_gaps

PURPOSE ^

FIND_GAPS - find zero sections in a vector of data.

SYNOPSIS ^

function [b,e] = find_gaps( x )

DESCRIPTION ^

 FIND_GAPS - find zero sections in a vector of data.

 Usage: [beginnings, ends] = find_gaps( x )

 this returns the beginning and end indices of zero sections in a vector
 x.  If x is not a vector, it will be turned into one with x = x(:).

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

     $Id: find_gaps.m,v 1.2 2003-11-24 18:57:47 dmk Exp $    

 Copyright (C) 2003 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