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

Learn moreOpportunities for recent engineering grads.

Apply Today1Rank

17Badges

16790Score

Alfonso Nieto-Castanon submitted Solution 480729 to Problem 2468. Calculate the h-index

on 30 Jul 2014 at 17:35

Alfonso Nieto-Castanon submitted Solution 476418 to Problem 2455. Diagonal of a Spiral Matrix

on 22 Jul 2014

Alfonso Nieto-Castanon submitted Solution 476413 to Problem 2455. Diagonal of a Spiral Matrix

on 22 Jul 2014

Alfonso Nieto-Castanon submitted a Comment to Solution 476047

Ha! I did not think of that, congrats! That gave me an idea for a potentially "unpeakable" .p code. I will create a new problem for that later tonight

on 21 Jul 2014

Alfonso Nieto-Castanon submitted a Comment to Problem 1969. Self-Description

I was going for the simple measurement (and the .p function was just to avoid publishing the actual solution) but please feel free to explore other approaches as well. While common hacks to pass this problem would work, I believe it might not be possible to hack the piechartsolve.p function to give away the solution (but I will be very interested if that proves to be wrong!)

on 21 Jul 2014

Alfonso Nieto-Castanon submitted a Comment to Problem 2450. Back to the Future III

That was a good hint (and sorry hacking was similarly fun)

on 20 Jul 2014

Alfonso Nieto-Castanon submitted Solution 475438 to Problem 2450. Back to the Future III

on 20 Jul 2014

Alfonso Nieto-Castanon submitted Solution 475434 to Problem 2450. Back to the Future III

on 20 Jul 2014

Alfonso Nieto-Castanon submitted Solution 475432 to Problem 2450. Back to the Future III

on 20 Jul 2014

Alfonso Nieto-Castanon submitted Solution 475428 to Problem 2449. Back to the future II

on 20 Jul 2014

Alfonso Nieto-Castanon submitted a Comment to Solution 475011

you are apparently using some cool/sophisticated checks in secret_solver to avoid hacking attempts, but in my opinion it might be safer to just leave the checking of whether the solution is correct or not to your .p function itself, instead of having your .p function return the correct value (e.g. something like testsuite in http://www.mathworks.com/matlabcentral/cody/problems/1969-self-description)

on 19 Jul 2014

Alfonso Nieto-Castanon submitted Solution 473301 to Problem 2423. Integer Sequence - II : New Fibonacci

on 16 Jul 2014

Alfonso Nieto-Castanon submitted Solution 473297 to Problem 2440. Text processing - Help Johnny write a letter home from camp

on 16 Jul 2014

Alfonso Nieto-Castanon submitted a Comment to Solution 470839

Ha, I followed the same sequence. Third time (and third function to overload) is a charm. Just look at the first test in the testsuite again :)

on 15 Jul 2014

Alfonso Nieto-Castanon submitted Solution 472461 to Problem 2424. Latest Question On Cody

on 15 Jul 2014

Alfonso Nieto-Castanon submitted Solution 472460 to Problem 2424. Latest Question On Cody

on 15 Jul 2014

Alfonso Nieto-Castanon submitted Solution 472459 to Problem 2424. Latest Question On Cody

on 15 Jul 2014

Alfonso Nieto-Castanon submitted Solution 471230 to Problem 2416. Let's see how peculiar we can get

on 13 Jul 2014

Alfonso Nieto-Castanon submitted Solution 471229 to Problem 2416. Let's see how peculiar we can get

on 13 Jul 2014

Alfonso Nieto-Castanon submitted Solution 471228 to Problem 2416. Let's see how peculiar we can get

on 13 Jul 2014

Alfonso Nieto-Castanon submitted a Comment to Solution 470839

No they did not. I believe then this did not work because @char/regexp takes precedence over your regexp function... this will work if you use instead another among the "three" (this is a hint) functions called by the testsuite before the error occurs (this happens when evaluating "tf{1}")...

on 12 Jul 2014

Alfonso Nieto-Castanon submitted Solution 470882 to Problem 537. Cody Computer Part 3 - Detect the graphic card used on Cody Computer

on 12 Jul 2014

Alfonso Nieto-Castanon submitted Solution 470881 to Problem 1774. Free passes for everyone!

on 12 Jul 2014

Alfonso Nieto-Castanon submitted Solution 470880 to Problem 1774. Free passes for everyone!

on 12 Jul 2014

Alfonso Nieto-Castanon submitted Solution 470879 to Problem 1774. Free passes for everyone!

on 12 Jul 2014

Alfonso Nieto-Castanon submitted Solution 470878 to Problem 1774. Free passes for everyone!

on 12 Jul 2014

Alfonso Nieto-Castanon submitted Solution 470877 to Problem 1774. Free passes for everyone!

on 12 Jul 2014

Alfonso Nieto-Castanon submitted a Comment to Solution 470839

mmm... this should have worked... perhaps cody fixed the "change the function name" vulnerability?

on 12 Jul 2014

Alfonso Nieto-Castanon submitted a Comment to Problem 1088. Rank of magic square (for beginners)

Yes, I have noticed that many of the "reference solutions" for my own problems seem to have been lost (they still appear when I edit the problem, they just disappeared from the list of scored solutions) -this explains the generalized drop in scores seen some time back. No idea what might have caused this, though. Some times a solution is "lost" if, during rescoring, it times out or runs into a general cody-level error (the same behavior when you create a solution that times out, which is not recorded as a failed solution at all). This might be intentional to avoid keeping solutions that may cause timeouts from being rescored, but it can have undesired consequences so it might be desirable to fix this behavior to avoid this sort of "lost solution" situations... (although I am not sure if this is related to this particular case of lost solutions). Thoughts?

on 12 Jul 2014

Alfonso Nieto-Castanon submitted Solution 470354 to Problem 2414. Mechanical Advantage of a Gear Train

on 11 Jul 2014

Alfonso Nieto-Castanon submitted Solution 470244 to Problem 2413. Temperature Conversion Utility

on 11 Jul 2014

Alfonso Nieto-Castanon submitted Solution 470138 to Problem 2413. Temperature Conversion Utility

on 11 Jul 2014

Alfonso Nieto-Castanon submitted Solution 470076 to Problem 2411. Largest Prime Number

on 11 Jul 2014

Alfonso Nieto-Castanon submitted Solution 470075 to Problem 2410. Determine the length of a string of characters

on 11 Jul 2014

Alfonso Nieto-Castanon submitted Solution 468530 to Problem 2408. Find the biggest digit in a matrix

on 9 Jul 2014

Alfonso Nieto-Castanon submitted Solution 468528 to Problem 2408. Find the biggest digit in a matrix

on 9 Jul 2014

Alfonso Nieto-Castanon submitted a Comment to Solution 468023

You are right, you could use ind2sub to avoid some of the limitations of dec2base as well (e.g. for n>36)...

on 9 Jul 2014