-
1 Comment
Carl Witthoft
on 24 Nov 2015
This fails, I believe, for asymmetric peaks. Try y = [0:4 , 3:-1:1,1,1,1,1,1]
Suggested Problems
-
423 Solvers
-
9532 Solvers
-
660 Solvers
-
543 Solvers
-
489 Solvers
More from this Author2
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!