MATLAB: Finding the row/column locations of 1s in a boolean matrix boolean matrix I have a Boolean matrix and I would like to find the row/column locations of all of the ones within the matrix. How might I go about doing this? Best Answer A = rand(3)>.5;[I,J] = find(A) % I is the rows, J is the cols. Related SolutionsMATLAB: Matrix row/column augmentation You can use F=a*(ones(20,20)). MATLAB: Repeat last row at the end of matrix B = [A; A(end,:)] ; Related QuestionRow/Column Deletion FormattingDeleting row/column iteratively of a correlation matrixFind entire rows in a matrix where a column value meets a certain conditionOperations depending on the row/columnHow to store [row,col]= find(X==a) results in a N*2 matrix ?!
Best Answer