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

- How to extract the events which have more than 3 consecutive rows
- Find out the rows having same values in all columns of a matrix
- Counting number of zeros in column or row, without looping
- How to find which rows are identical in a matrix
- Matrix Indices Problem
- Find the column with the least number of 1s (ones) in it | Find column with at least one non zero element
- How to display the outputs which one of them is complex numbers and other ones are just 2 digit number in a vertical form side by side. one is “output” and the other ones is “rows” and “columns” in matlab

## Best Answer