-
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
-
Sort a list of complex numbers based on far they are from the origin.
5697 Solvers
-
3340 Solvers
-
How to find the position of an element in a vector without using the find function
2749 Solvers
-
Find the sum of the elements in the "second" diagonal
1160 Solvers
-
9529 Solvers
More from this Author2
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!