MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

Suppose you go from x-y coordinates [3,4] to [0,0] to [0,1] to [1,1], then you walked 7 units of distance.

151 correct solutions
89 incorrect solutions

Last solution submitted on Feb 04, 2015

2 Comments

David Young
on 6 Mar 2012

This could be quite a good solution, if you removed the "x = 7; %" part and just left what is now a comment. As it is, although it satisfies the test case, it doesn't actually solve the problem.

David Young
on 6 Mar 2012

... though, just to be clear, the comment wouldn't be quite right, it still needs a little adjustment.

1 Comment

eric landiech
on 31 Jan 2012

useless solution

2 Comments