cell2mat
Convert a cell array to a matrix.
Syntax
Section titled “Syntax”m = cell2mat(c)Description
Section titled “Description”Concatenates the contents of cell array c into a single matrix. The cells must contain compatibly-sized numeric or character arrays. Equivalent to recursively applying cat along each dimension.
Examples
Section titled “Examples”cell2mat({[1 2], [3 4]; [5 6], [7 8]})% [1 2 3 4; 5 6 7 8]