Searching matrix which contain specific value?
이전 댓글 표시
Hi, i got two matrices of same size? lets say i am searching for a particular value? how can i use a counter loop to Return 1 if that matrix contain that value and return 0 if that matrix doesn't not contain the value?
답변 (1개)
madhan ravi
2019년 8월 17일
편집: madhan ravi
2019년 8월 17일
any(matrix(:)==value) % 1 means true ,false otherwise
카테고리
도움말 센터 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!