First you expand your cell doing myCell{:}
, this will create a comma separated list from your cell contents. Afterwards you merge them using brakets [myCell{:}]
if you want to merge as a line vector. I think this is the easiest way of doing what you want…
>> myCell = {[1 2 3], [4 5 6], [7 8]}
>> [myCell{:}]
ans =
1 2 3 4 5 6 7 8
Another alternative is cell2mat
:
>> cell2mat(myCell)
ans =
1 2 3 4 5 6 7 8