Discover MakerZone

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

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Alfonso Nieto-Castanon

View profile information

Personal Profile

http://www.alfnie.com

1Rank
17Badges
21100Score

Alfonso Nieto-Castanon submitted a Comment to Solution 568266

p=.0985 (ns), now if someone makes it to 29 consecutive wrong answers that would be some significant bad luck :)

on 28 Jan 2015

Alfonso Nieto-Castanon submitted a Comment to Solution 567313

very nice expansion using struct!

on 27 Jan 2015

Alfonso Nieto-Castanon submitted a Comment to Problem 2692. design a magic matrix without using the command magic.

The testsuite does not appear to be changed at all. Click on 'Edit' to edit this problem, then go to textbox titled 'Test Suite', add the brackets there to the "y_correct = ..." line, then click on the 'Save' button. Ideally you would also try out your own solution to this problem (in the textbox titled 'Reference Solution') and click on the 'Test reference solution' button to make sure that everything is working as expected...

on 27 Jan 2015

Alfonso Nieto-Castanon submitted a Comment to Solution 566636

this would count as a hack, but just because it is original a hint (if I am interpreting correctly): right idea wrong slash

on 27 Jan 2015

Alfonso Nieto-Castanon submitted a Comment to Problem 2873. feeling VERY lucky?

edit: Sylvain solution here shows that I was wrong above, and the random seeds *are* reinitialized before running the testsuite, only that not to their 'default' state but rather likely by using rng('shuffle') (I have to look through Cody code to see if I can confirm this but that would be consistent with the observed behavior)

on 26 Jan 2015

Alfonso Nieto-Castanon submitted a Comment to Solution 565376

ha, that would also work :)

on 26 Jan 2015

Alfonso Nieto-Castanon submitted a Comment to Problem 2873. feeling VERY lucky?

Hi Jean-Marie, thanks, it is a pleasure to be back! In my opinion that does not work simply because the Matlab session where your solution is being evaluated is not a "clean" (just started) matlab session. Rather the testsuite will be evaluated by one of several Matlab servers available at any given timepoint, and while the variable space is cleared, and the directory structure is deleted before each evaluation there are many other properties (like the state of random streams, functions in memory, etc.) which are not reinitialized and will be influenced by the particular server's history of evaluated solutions (e.g. this is what allows hacks like freepass to work)

on 25 Jan 2015

Alfonso Nieto-Castanon submitted a Comment to Problem 2692. design a magic matrix without using the command magic.

Hi Anupam, could you please correct this testsuite? (just change the line that reads "y_correct = 16 3 2 13;5 10 11 8;9 6 7 12;4 15 14 1" to read instead "y_correct = [16 3 2 13;5 10 11 8;9 6 7 12;4 15 14 1]")

on 24 Jan 2015

Alfonso Nieto-Castanon submitted a Comment to Problem 2871. Help the Patriots get to the Super Bowl

somebody's Matlab license is about to mysteriously disappear...

on 23 Jan 2015

Alfonso Nieto-Castanon submitted a Comment to Problem 2856. Matlab Basics - Create a row vector

(not to mention that this particular testsuite does not even test for anything at all)

on 23 Jan 2015