table2cell

Creates a cell array from the table t.

Syntax

table2cell(t)

Inputs

t
Type: table

Outputs

R
Resulting cell array.

Example

Simple table2cell example:
Lake = [6,10,13,18,20];
Area = [31700, 22300, 23000, 9910, 7340];
Volume = [2900, 1180, 850, 116, 393];
t = table(Lake, Area, Volume);
R = table2cell(t)
R =
{
  [1,1] 6
  [1,2] 31700
  [1,3] 2900
  [2,1] 10
  [2,2] 22300
  [2,3] 1180
  [3,1] 13
  [3,2] 23000
  [3,3] 850
  [4,1] 18
  [4,2] 9910
  [4,3] 116
  [5,1] 20
  [5,2] 7340
  [5,3] 393
}