Where is the zero?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
IBM watson
el 9 de Nov. de 2018
Comentada: IBM watson
el 9 de Nov. de 2018
How to find the location of a zero (or a different number) in a vector ?
like :
a=[ 1 3 5 6 34 4 0 1 3 4 50]
=>7
0 comentarios
Respuesta aceptada
madhan ravi
el 9 de Nov. de 2018
Editada: madhan ravi
el 9 de Nov. de 2018
a=[ 1 3 5 6 34 4 0 1 3 4 50]
index=find(a==0)
4 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!