Access and store cell arrays in a new variable

1 次查看(过去 30 天)
hello ,
I have a cell array y of dimensions 672*1 . I want to store the even cell numbers in a different variable. I want to start from the fourth cell array and store the 4,5,6 and so on cell arrays in a new variable without cells. So it will be like an array . Please help how it can be solved.
Thanks in advance
  2 个评论
Jan
Jan 2013-6-7
What is the contents of the cell? Is 5 an "even cell number"?
Ricky
Ricky 2013-6-7
I am sorry Jan it should be 4,6,8 ...... the cell is of type double and contains values from a sensor

请先登录,再进行评论。

回答(1 个)

Iain
Iain 2013-6-7
out = [cell{the indices of what you want to store}]

类别

Help CenterFile Exchange 中查找有关 Cell Arrays 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by