I have 1 x 7 cell. Each cell has 20000 x 1 array. How do I take 1st column and 3rd 4th 5 7 7 column ? So result becomes 20000 x 5 array ?

 採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 12 月 5 日
編集済み: Azzi Abdelmalek 2016 年 12 月 5 日

1 投票

If v is your cell array
out=cell2mat(v([1 3 4 5 7 ]))

その他の回答 (1 件)

Jan
Jan 2016 年 12 月 5 日

1 投票

out = cat(2, v{[1 3 4 5 7]});

カテゴリ

ヘルプ センター および File ExchangeData Types についてさらに検索

タグ

質問済み:

2016 年 12 月 5 日

回答済み:

Jan
2016 年 12 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by