Problem 710. Replace Vector Elements
Solution Stats
Problem Comments
-
3 Comments
Please add more tests, because it is easy to cheat :)
ambiguous about what happens to numbers between [0,0.1] : ill-defined problem or poor-testsuite
kinda easy
Solution Comments
-
1 Comment
The solution passes all tests but it is not correct.
-
2 Comments
-
2 Comments
??? What is this man???
Really???
He probably noticed that you had already set x to the correct answer in your test suite. All he (or anybody else) has to do is pass it back to you. Try removing the FOR loop from your test (and add some more tests while you're in there!).
Problem Recent Solvers451
Suggested Problems
-
2023 Solvers
-
Sum of first n positive integers
527 Solvers
-
Simple equation: Annual salary
4062 Solvers
-
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
351 Solvers
-
410 Solvers
More from this Author11
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!