%% Return Token from Character Vector
% Create a character vector. Return all text up to the first whitespace character that is a delimiter. strtok discards leading whitespace characters.

chr = '     Four score and seven years ago'

%

token = strtok(chr)

% Copyright 2012 The MathWorks, Inc.