2 in cat is the direction you want to concatenate in, 1 does it vertically, which doesn't work because the cell doesn't have the same number of columns!
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
1 Comment
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/215497-combine-two-cell-array-of-different-dimension#comment_283495
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/215497-combine-two-cell-array-of-different-dimension#comment_283495
Sign in to comment.