%% Find Dimensions of Cell Array
% Create a cell array of character vectors.

A{1,1,1} = 'cell_1';
A{1,1,2} = 'cell_2';
A{1,1,3} = 'cell_3'

%
% Find the number of dimensions of the cell array.

ndims(A)

% The result is 3 because the cell array has a size of 1-by-1-by-3.
% Copyright 2012 The MathWorks, Inc.