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

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

View profile information

Company/University

MathWorks

Personal Profile

I work on the MATLAB Central and MATLAB Interface teams. See also http://www.starchamber.com/

214Rank

9Badges

1550Score

Ned Gulley submitted Solution 429274 to Problem 2274. Find the square of the sum of the digits of a number

on 9 Apr 2014

Ned Gulley submitted a Comment to Problem 2269. Create the following sequence : 0 1 1 4 9 25 64 169 ...

I cleaned things up a little.

on 8 Apr 2014

Ned Gulley submitted a Comment to Problem 660. Find a subset that divides the vector into equal halves

Hassan, where are you getting an internal server error? Maybe leave your comment on the solution that has the related error? I'm guessing that your solution relies on randomness, so if you don't get lucky, the answer will time out. You may get lucky on your computer, but not on the Cody server.

on 8 Apr 2014

Ned Gulley submitted a Comment to Problem 2268. Given a number between 1-365 (a day number in a non leap year) , find what day of what month it is.

Hi Hassan: Thanks for the problem! You might want to be clear that this is for (I assume) a non leap year.

on 7 Apr 2014

Ned Gulley submitted a Comment to Problem 2265. 2048 Next Move

Good point! That complicates things nicely. I added a new example and corresponding test case that reflects my understanding of the 2048 rules.

on 4 Apr 2014

Ned Gulley submitted a Comment to Problem 2265. 2048 Next Move

Nick Howe says he's done it, and now he's working on 8192.

on 2 Apr 2014

Ned Gulley submitted a Comment to Problem 2259. Best Fit RMS

Nice problem Swapnali! Since it has a floating-point answer, you should specify how many significant digits you're looking for, or include a tolerance term in your test suite.

on 31 Mar 2014

Ned Gulley submitted a Comment to Problem 1720. Do the lines intersect?

Hi Celestino. I added a little bit more clarifying text to the problem statement. That's an interesting test case, but not one I will use for this problem. You could make your own extension to this problem, though!

on 12 Mar 2014

Ned Gulley submitted a Comment to Problem 2215. Power supply: 230V to 115V

J-G, thanks for the problem. Could you add some more information about expected inputs and outputs? An example and some more tests would be helpful too. If your test suite has exactly one test, it's trivial to write a correct answer.

on 25 Feb 2014

Ned Gulley submitted a Comment to Problem 317. Find the stride of the longest skip sequence

I added another test and rescored. It appears that DIST no longer works. The DIST function is from the Neural Networks Toolbox. It shouldn't have worked in the past, but since it did, it played a part in a lot of answers. Sorry for the discontinuity.

on 13 Feb 2014

Ned Gulley submitted a Comment to Problem 660. Find a subset that divides the vector into equal halves

Aryaa: Your solution looks good. The problem is that combnk is in the Statistics Toolbox, and Cody is designed to use only functions from basic MATLAB.

on 3 Feb 2014

Ned Gulley submitted a Comment to Problem 2118. Test of Quiz

Hi Petr:
Keep in mind that your test suite isn't hidden in Cody. For that reason, Cody isn't the best place to ask questions that have a single correct answer (i.e. the answer doesn't change depending on novel inputs).

on 15 Jan 2014

Ned Gulley submitted a Comment to Problem 2068. Determine the square root

I made the suggested change to the test suite and re-scored.

on 14 Jan 2014

Ned Gulley submitted a Comment to Problem 2007. Swap two numbers

I cleaned up the test.

on 20 Nov 2013

Ned Gulley submitted a Comment to Problem 660. Find a subset that divides the vector into equal halves

I added a new test. I periodically strengthen test suites to defeat look-up table strategies.

on 19 Nov 2013

Ned Gulley submitted a Comment to Solution 333168

Clever! If the system doesn't work properly, work around it.

on 15 Oct 2013

Ned Gulley submitted a Comment to Problem 1927. Find nth maximum

I went ahead and made the test suite change that José suggested above.

on 15 Oct 2013

Ned Gulley submitted a Comment to Solution 327824

An "outstanding" from Alfonso is worth two outstandings.

on 4 Oct 2013

Ned Gulley submitted a Comment to Problem 1912. Local Minima

Maybe the problem statement should specifically exclude the first and last elements?

on 4 Oct 2013

Ned Gulley submitted Solution 320428 to Problem 1879. Converting numbers back from extended form

on 17 Sep 2013

Ned Gulley submitted a Comment to Problem 1812. Tridiagonal

I fixed the test suite so that n is used instead of d.

on 15 Aug 2013