% CELLFUN Apply a function to each cell of a cell array.
% A = CELLFUN(FUN, C) applies the function specified by FUN to the
% contents of each cell of cell array C, and returns the results in
% the array A. A is the same size as C, and the (I,J,...)th element of A
% is equal to FUN(C{I,J,...}). FUN is a function handle to a function
% that takes one input argument and returns a scalar value. FUN must
% return values of the same class each time it is called. The
% order in which CELLFUN computes elements of A is not specified and
% should not be relied on.
%
% If FUN represents a set of overloaded functions, then CELLFUN follows
% MATLAB dispatching rules in calling the function.
%
% A = CELLFUN(FUN, B, C, ...) evaluates FUN using the contents of the
% cells of cell arrays B, C, ... as input arguments. The (I,J,...)th
% element of A is equal to FUN(B{I,J,...}, C{I,J,...}, ...). B, C, ...
% must all have the same size.
%
% [A, B, ...] = CELLFUN(FUN, C, ...), where FUN is a function handle to a
% function that returns multiple outputs, returns arrays A, B, ...,</