This solution is outdated. To rescore this solution, sign in.
-
3 Comments
Binbin Qi
on 12 Jan 2017
why this solution is wrong?
James
on 24 Jan 2017
Sorry for the double comment, but I can't delete the one I posted under my solution.
I'm also curious about the test suite, Binbin. I'm not quite sure why my solution of "y = diff([x+1 1]);" fails the first test suite. I don't see any of the forbidden words in there.
JD
on 7 Jul 2017
Binbin, James - I am not sure why either of your solutions didn't work. I submitted them, and they both passed... Maybe try resubmitting...? Maybe there's a bug in Cody...?
Suggested Problems
-
4516 Solvers
-
840 Solvers
-
"Low : High - Low : High - Turn around " -- Create a subindices vector
549 Solvers
-
552 Solvers
-
490 Solvers
More from this Author11
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!