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/

203Rank

8Badges

1505Score

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

Ned Gulley submitted a Comment to Solution 273246

@Disha: see http://en.wikipedia.org/wiki/42_(number)#The_Hitchhiker.27s_Guide_to_the_Galaxy

on 8 Jul 2013

Ned Gulley submitted a Comment to Problem 1686. Generate a melodic contour string matrix

Amazing how hard it is to get your test suite right on the first try. Thanks, and it looks like you're in the lead!

on 28 Jun 2013

Ned Gulley submitted Problem 1686. Generate a melodic contour string matrix to Community

on 28 Jun 2013

Ned Gulley submitted a Comment to Problem 1674. How many jokers?

Hi Amitava:
Could you provide an example in your problem statement? Also, as Evan says below, you should have more than one test case or it becomes a trivial matter to hard-code a particular answer.

on 24 Jun 2013

Ned Gulley submitted a Comment to Problem 162. High school cafeteria

I had assumed that "in order" meant "in the order provided". If that were the case, then [5 1 3 2 4] would return [5 3 2 1 4]. Maybe you could say you want them sorted rather than in order.

on 20 Jun 2013

Ned Gulley submitted a Comment to Problem 17. Find all elements less than 0 or greater than 10 and replace them with NaN

Fixed the wording to reflect this. Thanks for the comments.

on 20 Jun 2013

Ned Gulley submitted Solution 264031 to Problem 1534. Sort (high on middle, low on ends)

on 19 Jun 2013