combine elements of cell arrays

1 回表示 (過去 30 日間)
lucksBi
lucksBi 2017 年 4 月 13 日
コメント済み: lucksBi 2017 年 4 月 13 日
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 Center および File ExchangeMatrices and Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by