How to create new cell array from old cell array?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Alana Weir
el 17 de Ag. de 2016
Respondida: Image Analyst
el 17 de Ag. de 2016
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
0 comentarios
Respuesta aceptada
Image Analyst
el 17 de Ag. de 2016
Try this:
outputCellArray = inputCellArray(3:3:end);
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Shifting and Sorting Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!