%% Convert Document Array to Cell Array
% Convert a tokenizedDocument array to a cell array of string vectors.

documents = tokenizedDocument([ ...
    "an example of a short sentence" ...
    "a second short sentence"])
C = doc2cell(documents)

% View the first element of the cell array.

C{1}

% Copyright 2012 The MathWorks, Inc.