Logical Operator Matrix Problem
이전 댓글 표시
I have a logical matrix A [m by n], I want to find all rows of A that has only 1 true in that row. Lets assume
A = [1 0; 1 1; 0 0; 0 1]
After my process, I should get
Res = [1 0;0 0;0 0;0 1]
As logical matrix. It needs to only extract 1 true rows from A and make all other rows as false. Res matrix & A matrix have same dimensions
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Gaussian Mixture Models에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!