Navigation

Operators and Keywords

Function List:

C++ API

: celldisp (c)
: celldisp (c, name)

Recursively display the contents of a cell array.

By default the values are displayed with the name of the variable c. However, this name can be replaced with the variable name. For example:

c = {1, 2, {31, 32}};
celldisp (c, "b")
   ⇒
      b{1} =
       1
      b{2} =
       2
      b{3}{1} =
       31
      b{3}{2} =
       32

See also: disp.

Demonstration 1

The following code

 c = {1, 2, {31, 32}};
 celldisp (c, "b")

Produces the following output

b{1} = 

 1

b{2} = 

 2

b{3}{1} = 

 31

b{3}{2} = 

 32

Package: octave