Nested if statements done elsewise?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello all,
I have a huge matrix of NNNNNNx8 elements. I would like to receive a vector with true or false, 1 or 0 values with the result of all 8 elements of each row to be simultaneously negative. That means a NNNNNNx1 matrix.
Of course I can do it with nested if statements and a loop for all rows but it slows down my program by a lot. If you can suggest any faster way of doing it?
Thanks in advance!
댓글 수: 0
채택된 답변
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!