| MATLAB Function Reference | ![]() |
Syntax
celldisp(C)
celldisp(C,name)
Description
celldisp(C)
recursively displays the contents of a cell array.
celldisp(C, uses the string name)
name for the display instead of the name of the first input (or ans).
Example
Use celldisp to display the contents of a 2-by-3 cell array:
C = {[1 2] 'Tony' 3+4i; [1 2;3 4] -5 'abc'};
celldisp(C)
C{1,1} =
1 2
C{2,1} =
1 2
3 4
C{1,2} =
Tony
C{2,2} =
-5
C{1,3} =
3.0000+ 4.0000i
C{2,3} =
abc
See Also
| cell2struct | cellfun | ![]() |