For a given vector, find all numbers that repeated 2 times or more than 2 times.
Example:
A=[1 2 3 3 4 5 6 6 7] y=[3 6]
Example:
A=[1 1 1 1 0 1 1 2 2 9] y=[1 2]
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers55
Suggested Problems
-
Maximum running product for a string of numbers
2253 Solvers
-
1463 Solvers
-
Remove the two elements next to NaN value
702 Solvers
-
Output any real number that is neither positive nor negative
408 Solvers
-
5605 Solvers
More from this Author18
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Please adjust your Test Suite. In the first test case please test for an empty array using "isempty", not equality to "[]". See Solution 1539918. —DIV
Same issue illustrated in Solution 1539926.