Finding length between two array elements.

9 visualizaciones (últimos 30 días)
Hrishikesh Dalal
Hrishikesh Dalal el 3 de Dic. de 2019
Respondida: the cyclist el 3 de Dic. de 2019
i have an array consisting of 1's and 0's. 1-> generators on and 0's-> generators off. I need to find lengths for which the generators remain off. the array is 44*8760 values. Attaching the file as worspace.
  5 comentarios
Hrishikesh Dalal
Hrishikesh Dalal el 3 de Dic. de 2019
Thanks for the reply David i will work it out
David Goodmanson
David Goodmanson el 3 de Dic. de 2019
Hrishikesh,
I posted the wrong expression for z in the comment but it is fixed now.

Iniciar sesión para comentar.

Respuestas (1)

the cyclist
the cyclist el 3 de Dic. de 2019
The RunLength utility from the File Exchange might be handy. Run it in a loop over each column.

Categorías

Más información sobre Structures 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!

Translated by