how to retrieve a part from a cell array ?

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).

 采纳的回答

A=num2cell(1:10)
B=A(1:2:end)

1 个评论

yes, with B=A(1:2:end,1:15,1:907) only it works well. think you !

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Data Types 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by