Skip to content

cell2mat

general · scripts/general/cell2mat.m

: m = cell2mat (c)

Convert a cell array of compatible arrays into a single matrix.

Contents of c must concatenate into a hyperrectangle. Nested cell arrays are not supported. Mixed types concatenate when MATLAB would (except logical with char).