data storage, reduce the repeated elements, recurrence
Show older comments
if input is:
a = [5 5 1 6 6 6 4 4 2]
how to get the output as:
elements: [5 1 6 4 2]
recurrence: [2 1 3 2 1]
Accepted Answer
More Answers (0)
Categories
Find more on Downloads in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!