how to concatenate all the cell values horizondally in matlab
1 回表示 (過去 30 日間)
古いコメントを表示
I have a cell array
{[1;1;1] [2;2] [3;3;3;3] }
I want to convert the cell array into a single vector
[1,1,1,2,2,3,3,3,3]
Kindly help.
0 件のコメント
採用された回答
per isakson
2016 年 4 月 3 日
編集済み: per isakson
2016 年 4 月 3 日
One way
>> cac = {[1;1;1] [2;2] [3;3;3;3] };
>> cat( 1, cac{:} )'
ans =
1 1 1 2 2 3 3 3 3
その他の回答 (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!