Quantcast

Documentation Center

  • Trial Software
  • Product Updates

celldisp

Display cell array contents

Syntax

celldisp(C)
celldisp(C, name)

Description

celldisp(C) recursively displays the contents of a cell array.

celldisp(C, name) uses the string name for the display instead of the name of the first input (or ans).

Examples

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

Was this topic helpful?