How to create new cell array from old cell array?

3 ビュー (過去 30 日間)
Alana Weir
Alana Weir 2016 年 8 月 17 日
回答済み: Image Analyst 2016 年 8 月 17 日
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 日
Try this:
outputCellArray = inputCellArray(3:3:end);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeShifting and Sorting Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by