%% Convert Table with Three-Dimensional Variables to Array
% Create a table, T, with two rows and three variables where each variable has three dimensions.

T = table(ones(2,1,3),2*ones(2,2,3),3*ones(2,3,3),...
    'VariableNames',{'One' 'Two' 'Three'})

% The size of the table is 2-by-3.
%
% Convert table T to an array.

A = table2array(T)

% The size of A is 2-by-6-by-3.
% Copyright 2012 The MathWorks, Inc.