concatenate a double to a cell
2 ビュー (過去 30 日間)
古いコメントを表示
This is probably a silly question but:
I have a 4164x7 cell and a 4164x1 double. I want to concatenate so as to get a 4164x8 cell. However, all my methods have come up nil (cat, vertcat and horzcat). I have even tried to transpose the array. Any help would be nice.
0 件のコメント
採用された回答
Azzi Abdelmalek
2013 年 11 月 21 日
編集済み: Azzi Abdelmalek
2013 年 11 月 21 日
a={1 2 3;4 5 6}
b=[5 8 12]
out=[a;num2cell(b)]
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!