how to convert cell to array

2 次查看(过去 30 天)
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
If v is your cell array
out=cell2mat(v([1 3 4 5 7 ]))

更多回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Data Types 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by