Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Code for Counting and Lookup

1 visualización (últimos 30 días)
Waqas Siddique
Waqas Siddique el 3 de Oct. de 2020
Cerrada: Rik el 4 de Oct. de 2020
I have imported a csv file into MATLAB. The number of rows in the table is 81 so there is a long series of '1's and '0's in the single column. I want to check that whenever the consecutive number of rows with '1's is greater than 4, then flag it and note the time stamp corresponding to the first '1' for that consecutive rows of '1'. Do this for every series of 1's appearing successively for more than 4 times.

Respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by