필터 지우기
필터 지우기

Access and store cell arrays in a new variable

조회 수: 1 (최근 30일)
Ricky
Ricky 2013년 6월 7일
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