Cell Matrix Reconstruction

If I have a 20x1 cell matrix, where each cell is a 1 × 50 cell matrix, what would be the best way to form a 20 × 50 cell matrix?

Thanks!

+6
source share
1 answer

If your array of cells is stored in the variable cellArray , you can use the VERTCAT function as follows:

 cellMatrix = vertcat(cellArray{:}); 
+9
source

Source: https://habr.com/ru/post/893657/


All Articles