combine elements of cell arrays

i want 2 know that how can i combine elements of cell arrays in new cell array. e.g elements of a{1,1}{1,1} b{1,1}{1,1} c{1,1}{1,1} are shown on same row of new cell array.

 Accepted Answer

You might try the MATLAB functions horzcat and vertcat. For example:
a{1,1}{1,1}=123;
b{1,1}{1,1}=123;
horzcat(a{1,1}{1,1},b{1,1}{1,1}) % this gives you the cell content in one row
horzcat(a{1,1},b{1,1}) % this gives you a cell array of one row
Hope this helps somehow ;)

1 Comment

yea i hv realized that right after posting question. thanks Alot :)

Sign in to comment.

More Answers (0)

Categories

Find more on Operators and Elementary Operations in Help Center and File Exchange

Tags

Asked:

on 13 Apr 2017

Commented:

on 13 Apr 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!