combine elements of cell arrays

4 次查看(过去 30 天)
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.

采纳的回答

Philip G
Philip G 2017-4-13
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 个评论
lucksBi
lucksBi 2017-4-13
yea i hv realized that right after posting question. thanks Alot :)

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by