For a given vector, find all numbers that repeated 2 times or more than 2 times.
A=[1 2 3 3 4 5 6 6 7]
A=[1 1 1 1 0 1 1 2 2 9]
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.
Compute a dot product of two vectors x and y
Magic is simple (for beginners)
Saving MATLAB session to a file
What is Sum Of all elements of Matrix
Draw a 'X'!
Calculate mean value of any pair in a vector.
World Cup 2018 Prediction!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office