This solution is outdated. To rescore this solution, sign in.
-
2 Comments
James
on 24 Jan 2017
I'm also curious about the test suite, Binbin. I'm not quite sure why
y = diff([x+1 1]); fails the test suite.
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
-
Project Euler: Problem 6, Natural numbers, squares and sums.
2323 Solvers
-
find the maximum element of the matrix
511 Solvers
-
Replace Nonzero Numbers with 1
406 Solvers
-
281 Solvers
-
9231 Solvers
More from this Author11
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!