Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

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

Example:

str="st,rt-o|k"
strtok(str,",-|")
Result:

Contents of strtok
[1,] "st"
[2,] "rt"
[3,] "o"
[4,] "k"

Group: String Manipulation
See also: atof string substr

Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

(C) MD*TECH Method and Data Technologies, 17.8.2000