How to create new cell array from old cell array?

If I have a single column cell array of formatted date/times and i am trying to create a new array composed of the cell from every 3rd row of the original array what code should I use?
Example:
Input -
01/01/16
02/01/16
03/01/16
04/01/16
05/01/16
06/01/16
Output -
03/01/16
06/01/16

 採用された回答

Image Analyst
Image Analyst 2016 年 8 月 17 日

1 投票

Try this:
outputCellArray = inputCellArray(3:3:end);

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeShifting and Sorting Matrices についてさらに検索

質問済み:

2016 年 8 月 17 日

回答済み:

2016 年 8 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by