how to concatenate all the cell values horizondally in matlab

17 ビュー (過去 30 日間)
navan
navan 2016 年 4 月 3 日
コメント済み: navan 2016 年 4 月 3 日
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.

採用された回答

per isakson
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
  1 件のコメント
navan
navan 2016 年 4 月 3 日
Thanks a ton Per isakson :) . thanks again

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCell Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by