find number of zeros in an array
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Harshitha Eshwar
el 10 de Dic. de 2021
Comentada: Rik
el 10 de Dic. de 2021
data = [ 0 0 0 1 1 0 0 0 0 0 0 1 1 1]
%need the outpout as : length of each zero= (3,6) length of each ones = (2,4)
Respuesta aceptada
Rik
el 10 de Dic. de 2021
Get the RunLength function by Jan from the file exchange.
Más respuestas (0)
Ver también
Categorías
Más información sobre Text Files en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!