gusucode.com > bigdata 工具箱 matlab源码程序 > bigdata/@tall/table2cell.m

    function c = table2cell(t)
%TABLE2CELL  Convert table to cell array.
%   C = TABLE2CELL(T)
%
%   See also: TABLE2CELL, TALL.

%   Copyright 2016 The MathWorks, Inc.

t = tall.validateType(t, mfilename, {'table'}, 1);

c = elementfun(@table2cell, t);

% We get back a tall cell with the same size as the table
c.Adaptor = matlab.bigdata.internal.adaptors.getAdaptorForType('cell');
if ~isnan(t.Adaptor.NDims)
    c.Adaptor = setKnownSize(c.Adaptor, t.Adaptor.Size);
end
end