Creating a function that identifies repeated items in a vector
Ältere Kommentare anzeigen
I need help with creating this repeat function.
Write a function, repeat, that takes as input a vector of arbitrary length whose elements appear in random order. Determine whether the vector contains any repeated items. If it does, return true (1). Otherwise, return false(0). Test it in a program on the following vector: 11 22 33 44 55 66 77 99 11 102
2 Kommentare
Azzi Abdelmalek
am 4 Dez. 2014
What is the expected result?
per isakson
am 4 Dez. 2014
Homework? What you done so far?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!