strtoksplit string into tokensCalling Sequenceres = strtok(str, delimiters)Argumentsstra character string.delimitersa character string.resa character string.Descriptionres = strtok(str, delimiters) sequence of calls to
this function split str into tokens, which are
sequences of contiguous characters separated by any of the
characters that are part of delimiters.
Examples '' )
token = strtok(" r,");
TOKENS = [TOKENS,token];
end
disp(TOKENS);
]]>See Also
strrchr
strchr