Mercurial > hg > octave-lyh
diff scripts/deprecated/split.m @ 8877:2c8b2399247b
implement strsplit; deprecate split
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Thu, 26 Feb 2009 10:29:59 +0100 |
parents | scripts/strings/split.m@502e58a0d44f |
children | ebb8c1dcf4d3 |
line wrap: on
line diff
copy from scripts/strings/split.m copy to scripts/deprecated/split.m --- a/scripts/strings/split.m +++ b/scripts/deprecated/split.m @@ -18,6 +18,10 @@ ## -*- texinfo -*- ## @deftypefn {Function File} {} split (@var{s}, @var{t}, @var{n}) +## This function has been deprecated. Use @code{char (strsplit (s, t))} +## instead. +## @end deftypefn + ## Divides the string @var{s} into pieces separated by @var{t}, returning ## the result in a string array (padded with blanks to form a valid ## matrix). If the optional input @var{n} is supplied, split @var{s}