Filter löschen
Filter löschen

Access and store cell arrays in a new variable

1 Ansicht (letzte 30 Tage)
Ricky
Ricky am 7 Jun. 2013
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 Kommentare
Jan
Jan am 7 Jun. 2013
What is the contents of the cell? Is 5 an "even cell number"?
Ricky
Ricky am 7 Jun. 2013
I am sorry Jan it should be 4,6,8 ...... the cell is of type double and contains values from a sensor

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Iain
Iain am 7 Jun. 2013
out = [cell{the indices of what you want to store}]

Kategorien

Mehr zu Cell Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by