Discover MakerZone

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

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

J-G van der Toorn submitted a Comment to Solution 406514

Since Cody, I dislike for-loops, but your solution is way simpler than my own algorithm. Mission accomplished... Nevertheless, I would hope for a non-looped piece of code. Let's see in phase 3.

on 20 Feb 2014