c{1} refers to the contents of the cell, that is, to the matrix in your case. [ab] combines the enclosed content, i.e. two matrices (if the same number of rows).
To combine two arrays of cells, refer to them as such. To refer to individual cells in an array of cells, you can use () , for example. c(1) . In this way,
[c(1) c(2)]
works (or [c (1); c (2)]), but for this example
c(1:2)
is preferred (or c(1:2)' for a column instead of a row).
source share