Adding numbers in a matrix to equal zero
Mostrar comentarios más antiguos
Please help, I need to go through my matrix to find if two numbers following one another that equal zero, for example if I had:
4 5 -5 7
1 0 -1 9
2 4 -4 0
This example gives me the 5 and -5 that equal 0. The numbers must be next to one another in the row but I need the answer to say yes just one time if it happens anywhere in the matrix or no if it doesn't appear at all.
Sorry if I haven't explained this well, I've been working on it for so long and have probably confused myself.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!