| 
 | 
	
    
CELL2MAT Convert the contents of a cell array into a single matrix.1 K; R# S; v& \8 ]! t- |8 T 
    M = CELL2MAT(C) converts a multidimensional cell array with contents of3 k# @" q- Q  i) u0 E( s 
    the same data type into a single matrix. The contents of C must be able 
: }& k6 U$ q+ w    to concatenate into a hyperrectangle. Moreover, for each pair of) X2 z% J2 |. F+ d- r8 _ 
    neighboring cells, the dimensions of the cell's contents must match, 
) A9 Q4 G, W7 J% N    excluding the dimension in which the cells are neighbors. This constraint 
' i% P  B; C+ M8 b    must hold true for neighboring cells along all of the cell array's 
% M' n5 o& i7 q) A; j( T2 |9 n    dimensions. 
# [5 w  e5 q$ X+ T8 A( i, S) U2 v( y+ A! ~3 U2 w* X* g 
    The dimensionality of M, i.e. the number of dimensions of M, will match% t$ T7 \* `; p6 W  t 
    the highest dimensionality contained in the cell array. 
' t  @3 \4 [' Q+ R( `3 O8 u: M% b" I* N- @  [ 
    CELL2MAT is not supported for cell arrays containing cell arrays or 
$ U2 }4 t2 L' h5 J3 j    objects. 
3 u: l- j1 m( q2 ^$ \3 O: c9 z; G" J% @ 
        Example:5 I4 {6 Z2 q% c: U5 `+ x 
           C = {[1] [2 3 4]; [5; 9] [6 7 8; 10 11 12]}; 
4 e4 a$ X  `  |0 u* u1 B  q9 B1 a) M           M = cell2mat(C)6 _* D+ z) n: z/ j/ N( N& p 
 
4 Y( O5 ]% O" R; p1 e* _6 g        See also mat2cell, num2cell% L6 r6 v. U" D 
 
7 o5 K' y$ {3 P/ T$ C, v! l    Overloaded methods: 
$ g1 Y' r3 B9 q2 V% _( D2 A       distributed/cell2mat 
" g; F5 e0 v' i& ]+ x% e* e6 z& a+ L3 \! m 
    Reference page in Help browser 
9 R" {5 u$ K/ [- J6 Q       doc cell2mat |   
 
 
 
 |