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

# Ned Gulley

View profile information

E-mail

Company/University

MathWorks

Personal Profile

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

174Rank
1325Score

on 14 Jun 2013

I fixed the test suite so the number of parameters is correct.

on 11 Jun 2013

on 4 Jun 2013

Hi Franek: Thanks for creating a problem! It's a little ambiguous right now (see @andrea84's comment above). There is more than one answer as currently defined. Could you please clarify it?

on 3 Jun 2013

Ned Gulley submitted a Comment to Problem 1531. The rabbit problem

Hi Hussam. Thanks for the problem. The Fibonacci sequence can start different ways. Can you provide a specific example or two so there's no ambiguity?

on 30 May 2013

Ned Gulley submitted a Comment to Solution 250525

I'm not sure how you reach that conclusion. The example given says fib(5) should be 5. Your code returns 15.

on 29 May 2013

Ned Gulley submitted a Comment to Solution 250534

The error for Test 1 says "Output argument 'output' (and maybe others) not assigned". Close examination of your code reveals that when x is 1 and y is 2, you go down the first switch of the outer "if" statement, and sure enough, output never gets assigned and the function fails.

on 29 May 2013

Ned Gulley submitted a Comment to Problem 460. Replace May with April

on 28 May 2013

Ned Gulley submitted a Comment to Problem 1515. Procrustean bed

I love vector problems with classically-inspired titles! Good old Procrustes...

on 21 May 2013

I cleaned up the problem statement and fixed the first test.

on 6 May 2013

Ned Gulley submitted a Comment to Problem 1451. Symmetry of vector

I updated test case #3.

on 2 May 2013

on 25 Apr 2013

You should call this a volcano matrix!

on 24 Apr 2013

on 24 Apr 2013

Ned Gulley submitted a Comment to Problem 1451. Symmetry of vector

I fixed the wording.

on 24 Apr 2013

on 9 Apr 2013

on 3 Apr 2013

on 3 Apr 2013

Ned Gulley submitted a Comment to Solution 226037

on 1 Apr 2013

on 27 Mar 2013

Ned Gulley submitted a Comment to Problem 1384. Who invented zero?

Hi Harish: Keep in mind that fill-in-the-blank style questions aren't a great match for Cody since competitors can always inspect the test suite.

on 26 Mar 2013

Ned Gulley submitted a Comment to Problem 1378. Young's modulus

I went ahead and fixed the function calls in the test suite.

on 25 Mar 2013

on 25 Mar 2013

That function is in the Bioinformatics Toolbox (http://www.mathworks.com/help/bioinfo/ref/seqreverse.html). Cody permits only MATLAB functions.

on 21 Mar 2013

Dan, could you provide some more specifics here? Altitude in meters, feet, or furlongs? Against what reference? Number of significant digits you expect? Latitude and longitude are in decimal degrees? An example would also help.

on 21 Mar 2013

Ned Gulley submitted a Comment to Solution 217288

dec2bin returns a string. This problem is looking for numbers.

on 15 Mar 2013

Ned Gulley submitted a Comment to Problem 55. Counting Sequence

My mistake guys. Sorry about that. By the way, these comments are very helpful for adding (and fixing) bad test cases. Thanks for taking the time to comment.

on 14 Mar 2013

Ned Gulley submitted a Comment to Solution 98447

Thanks for the additional test question!

on 13 Mar 2013

Ned Gulley submitted a Comment to Solution 190537

Thanks for the tip!

on 12 Mar 2013

Ned Gulley submitted a Comment to Solution 174526

I see two problems. It needs to be a function (as modeled by the template), and the input command hangs and times out when called by a web service.

on 12 Mar 2013

Ned Gulley submitted a Comment to Solution 214056

Done. People never get tired of look-up tables.

on 12 Mar 2013

Ned Gulley submitted a Comment to Solution 207786

To keep Cody from degenerating into a bunch of unreadable party tricks, we've blocked usage of eval, evalc, and a few others. But regexp is too important for us to block, so this trick will remain available into the foreseeable future. Which means, to back up Alfonso's comment, please don't abuse it. It's funny once, and then it just gets annoying.

on 27 Feb 2013

Ned Gulley submitted a Comment to Solution 208601

Yes... sorry about that. It turns out the STR2FUNC function was being badly abused in the name of writing short answers. Since we saw almost no places where it was being used responsibly, we decided to invalidate all answers with STR2FUNC. It's a compromise, but we think on balance that it's the right thing to do.

on 25 Feb 2013

on 21 Feb 2013

on 21 Feb 2013

on 14 Feb 2013

I fixed the obvious typo with the "yy".

on 5 Feb 2013

on 18 Jan 2013

There seems to be agreement that test case 3 has issues. Since the original author never returned, I commented out that test case.

on 15 Jan 2013

on 14 Jan 2013

on 11 Jan 2013

on 11 Jan 2013

on 11 Jan 2013

on 10 Jan 2013

on 3 Jan 2013

Ned Gulley submitted a Comment to Problem 1074. Property dispute!

I fixed the test suite, which had a problem described by Alfonso below.

on 2 Jan 2013

Ned Gulley submitted a Comment to Solution 180722

My apologies. I don't know why I had this wrong before, but according to my description, yes, test 3 should return [].

on 2 Jan 2013

Your function has to use exactly the same name that is provided in the function template. In this case, the function must be called "you_fcn_name". You wrote a function called "GenerateVector". Change the name of your function and it should pass.

on 24 Dec 2012

Whoops! Thanks for pointing that out. I might've eventually gotten suspicious after seeing absolutely everybody passing...

on 21 Dec 2012

Ned Gulley submitted a Comment to Solution 180722

In test 3, A is wholly contained within B. But I added another test case that should return the empty set [].

on 21 Dec 2012