splitstring.m
SYNTAX: len =splitstring( str, varargin )
PURPOSE: ARRAY = SPLITSTRING( STR, DELIM, ALLOWEMPTYENTRIES ) splits the
character string STR, using the delimiter DELIM (which must be a
character array). ARRAY is a cell array containing the resulting
strings. If DELIM is not specified, space delimiter is assumed (see
ISSPACE documentation). ALLOWEMPTYENTRIES should be a logical single
element, specifying weather empty elements should be included in the
results. If not specified, the value of ALLOWEMPTYENTRIES is false.
INPUT:
string = text string to find length of
varargin is either DELIM or ALLOWEMPTYENTRIES
OUTPUT:
len = length of character string
Dependencies