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!