%% Number of Elements in Cell Array
% Create a cell array of character vectors.

A = {'dog','cat','fish','horse'};

%
% numel counts 4 elements in the array.

n = numel(A)

% Copyright 2012 The MathWorks, Inc.