Find all repeated numbers - MATLAB Cody - MATLAB Central

Problem 44651. Find all repeated numbers

Difficulty:Rate

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

36.36% Correct | 63.64% Incorrect
Last Solution submitted on Jan 10, 2025

Problem Comments

Solution Comments

Show comments
Why should you share code?
In a discussion on LInkedin about my recent blog post, Do these...
1
3

Problem Recent Solvers50

Suggested Problems

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!