Adding numbers in a matrix to equal zero
이전 댓글 표시
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.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!