MATLAB: How to concatenate two or more cell arrays into one

cellsconcatenation

I have two cells:
a =
Columns 1 through 6
[13x1 double] [394x1 double] [181536.00] [44x1 double] [14x1 double] [28x1 double]
b =
[] [14x1 double] [] [4x1 double] [] [2x1 double]
I want one cell:
c =
Columns 1 through 6
[13x1 double] [408x1 double] [181536.00] [48x1 double] [14x1 double] [30x1 double]
i.e. c is the concatenation of a and b.
How?

Best Answer

Probably the easiest way is to use the heterogeneous version of the cat function.