%% Visitor Class to Display Contents of Cell Array
% This example shows how to use a visitor class to define operations to perform on specific types of matlab::data::Array.
% The DisplayVisitor class implements operations to display the contents of cell arrays for arrays of types bool, double, and char, and contained cell arrays. You can add new operations to support other cell array contents by adding more overloaded functions.

type DisplayVisitor.cpp

% To use the class, pass a cell array to the DisplayCell function.

type callDisplayCell.cpp

% Copyright 2012 The MathWorks, Inc.