Mercurial > hg > octave-lyh
comparison scripts/strings/split.m @ 2355:c9f70d39255f
[project @ 1996-08-20 23:30:54 by jwe]
author | jwe |
---|---|
date | Tue, 20 Aug 1996 23:32:09 +0000 |
parents | b5568c31ee2c |
children | 041ea33fbbf4 |
comparison
equal
deleted
inserted
replaced
2354:2ce6e1ec9b53 | 2355:c9f70d39255f |
---|---|
21 ## | 21 ## |
22 ## Divides the string S into pieces separated by T, and stores the | 22 ## Divides the string S into pieces separated by T, and stores the |
23 ## pieces as the rows of M (padded with blanks to form a valid | 23 ## pieces as the rows of M (padded with blanks to form a valid |
24 ## matrix). | 24 ## matrix). |
25 | 25 |
26 ## Author: jwe | 26 ## Author: Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at> |
27 ## Adapted-By: jwe | |
27 | 28 |
28 function m = split (s, t) | 29 function m = split (s, t) |
29 | |
30 ## Original version by Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at>. | |
31 | 30 |
32 if (nargin != 2) | 31 if (nargin != 2) |
33 usage ("split (s, t)"); | 32 usage ("split (s, t)"); |
34 endif | 33 endif |
35 | 34 |