Problem 710. Replace Vector Elements
Solution Stats
Problem Comments
-
3 Comments
Grzegorz Knor
on 23 May 2012
Please add more tests, because it is easy to cheat :)
G K
on 27 May 2013
ambiguous about what happens to numbers between [0,0.1] : ill-defined problem or poor-testsuite
John Hovestadt
on 15 Dec 2016
kinda easy
Solution Comments
-
1 Comment
Atsushi Ueno
on 26 Jul 2016
The solution passes all tests but it is not correct.
-
2 Comments
-
2 Comments
Reza Ahmadzadeh
on 23 May 2012
??? What is this man???
Really???
Ned Gulley
on 23 May 2012
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
-
2785 Solvers
-
2023 Solvers
-
middleAsColumn: Return all but first and last element as a column vector
562 Solvers
-
461 Solvers
-
Do Fast Fourier Transformation
245 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!