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...?
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!