MATLAB: Concatenate a column of cells into a single array

cell arrayconcatenateMATLAB

Hello,
I have a cell containing multiple arrays that I want to concatenate into a single array such that X{1}, X{2},… are all each a 100×1 double. I am hoping for a non looping solution that will put them all together into a single array that is 100xlength(X). I have tried using cat(), vertcat() and others but keep getting the error that 'dimensions of arrays being concatenated are not consistent.' Any help is greatly appreciated, thanks!

Best Answer

cell2mat(X)