%% Return Multiple Output Arrays
% Create a cell array that contains numeric arrays of different sizes.

C = {1:10, [2; 4; 6], []}

%
% Calculate the sizes of each array in C. The number of rows and columns are each in 1-by-3 numeric arrays.

[nrows,ncols] = cellfun(@size,C)

% Copyright 2012 The MathWorks, Inc.