how to retrieve a part from a cell array ?

조회 수: 3 (최근 30일)
yahya
yahya 2014년 4월 4일
댓글: Image Analyst 2014년 4월 5일
Hello;
how to copy a part of cell array (64,15,907) to another cell array (32,15,907)(i.e: copy only odd rows:1,3,5,....,63).

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2014년 4월 4일
A=num2cell(1:10)
B=A(1:2:end)
  댓글 수: 1
yahya
yahya 2014년 4월 5일
yes, with B=A(1:2:end,1:15,1:907) only it works well. think you !

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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