How can I merge two array's?
1 回表示 (過去 30 日間)
古いコメントを表示
I have two array and I want to merge in one . A =['test']; B= [1, 2, 3]; C= ['test', 1, 2, 3];
0 件のコメント
採用された回答
Adam
2015 年 10 月 29 日
{ A, B }
will merge them into a cell array as two distinct cells
[ A, num2cell( B ) ]
will give you a 4-element cell array with the elements of B each in their own cell.
0 件のコメント
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Software Development Tools についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!