The problem title and description have been improved.
What should the behavior be when a certain value occurs three times or more in vector A? For example, when A = [2 5 3 4 2 1 3 2] (which is the same as the A in the problem description, but with another '2' added to the end), should matrix B list [5 4 2 1 3] before [5 3 4 1 2], or after?
if x is not continuous, the result will be not true
338 Solvers
197 Solvers
Project Euler: Problem 8, Find largest product in a large string of numbers
327 Solvers
Generate N equally spaced intervals between -L and L
569 Solvers
2746 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!