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

Learn moreOpportunities for recent engineering grads.

Apply TodayJacob submitted a Comment to Solution 259197

For some reason, regexp manages to interpret the string input as an anonymous function, call this function and return the output. I must say I don't really understand how this works. Why does regexp call the function when comparing the two strings? Is it a bug?
Anyway, this is really ugly code; it would be fine if the Cody team would remove the possibilities to use regexp, str2num etc to score cheap size points.

on 11 Jun 2013

Jacob submitted Solution 259536 to Problem 10. Determine whether a vector is monotonically increasing

on 11 Jun 2013

Jacob submitted Solution 259535 to Problem 10. Determine whether a vector is monotonically increasing

on 11 Jun 2013

Jacob submitted Solution 257091 to Problem 3. Find the sum of all the numbers of the input vector

on 6 Jun 2013

Jacob submitted Solution 257090 to Problem 3. Find the sum of all the numbers of the input vector

on 6 Jun 2013

Jacob submitted Solution 256899 to Problem 3. Find the sum of all the numbers of the input vector

on 6 Jun 2013

Jacob submitted Solution 256857 to Problem 3. Find the sum of all the numbers of the input vector

on 6 Jun 2013