How to find positive values in 1500 matrices(720*1280)?
조회 수: 9 (최근 30일)
이전 댓글 표시
I've got a data like this. Each file contains zero and some positive values or all zeros.
I want to find which matrix contains positive values.
댓글 수: 0
답변 (2개)
KSSV
2019년 4월 26일
If A is your matrix.
idx = A>0 ; % this gives indices of posittive values
idx = sign(A) % this gives sign of values in A
A(A>0) % this gives values in A which are greater than 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!