I need to find if a row has more than one occurence of 1s. I am expecting a response return like true or false. Sample row matrix is below:

0 0 1 1 0 0

Skip to content# MATLAB: Check to find if a row has an element occuring more than once

###### Related Question

element occurring more than a specified numberMATLAB

I need to find if a row has more than one occurence of 1s. I am expecting a response return like true or false. Sample row matrix is below:

0 0 1 1 0 0

- Determine if there are 3 consecutive rows and columns in a list of subscripts
- Finding a max in a column and making all other elements equal to zero
- Can this be done without a for loop
- Matrix Indices Problem
- Find where data is above threshold continuously and for how long using logical indexing
- How to select from identical rows based on their associated value in one column
- Counting number of zeros in column or row, without looping

## Best Answer