I have a logical array of 100 columns each with 7 rows consisting of zeros and ones. Most of the columns add up to zero but I was wondering if there was a function to return the row numbers that have a non-zero value? Thank you
MATLAB: How to return all columns in a logical array that have a non-zero value
logicalarrayMATLAB
Best Answer