Group: | String Manipulation |
See also: | atof string substr |
Function: | strtok | |
Description: | strtok breaks the string in tokens. The second argument is a set of delimiters, i.e. characters that separate token. The delimiters themselfs are not returned. |
Usage: | z = strtok (str, del) | |
Input: | ||
str | 1 x 1 string vector | |
del | 1 x 1 string vector | |
Output: | ||
z | n x 1 string vector, substrings of str |
str="st,rt-o|k" strtok(str,",-|")
Contents of strtok [1,] "st" [2,] "rt" [3,] "o" [4,] "k"
Group: | String Manipulation |
See also: | atof string substr |