MATLAB: Hi,,lets say I have a matrix,A =[1 0 1 0 0; 10 1 0; 0 0 1 0; 0 0 0 1]. How to find out that row 3 and 4 has weight one?

matrixrow operationweight

How Do I find out a specific weight number in a row of matrix?

Best Answer

sum(A,2) == 1
?