Problem 2704. Find Sign(Zero Crossing) Changes in Array
Solution Stats
Problem Comments
-
5 Comments
Test suite updated with additional test cases
I might be misunderstanding this problem, but I think the fourth and fifth tests have errors. The answer for the fourth should have a zero in the first position, not the second. The answer for the fifth test has no zeros at all.
@Chris, the question asks to make the points zero where the neighbourhood elements are opposite in sign.
This really needs a better problem description --- the original author's intention is not at all clear.
(And in fact the original author's own solution does not pass the updated test suite anymore.)
Solution Comments
Show commentsProblem Recent Solvers5
Suggested Problems
-
Find the two most distant points
2729 Solvers
-
Rosenbrock's Banana Function and its derivatives
150 Solvers
-
Put two time series onto the same time basis
320 Solvers
-
Find a subset that divides the vector into equal halves
384 Solvers
-
Get the elements of diagonal and antidiagonal for any m-by-n matrix
470 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!