Convert the cell array c into a matrix by concatenating all elements of c into a hyperrectangle.
Elements of c must be numeric, logical, or char matrices; or cell
arrays; or structs; and cat must be able to concatenate them
together.
See also: mat2cell, num2cell.
The following code
C = {[1], [2 3 4]; [5; 9], [6 7 8; 10 11 12]};
cell2mat (C)
Produces the following output
ans =
1 2 3 4
5 6 7 8
9 10 11 12
Package: octave