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

Alfonso Nieto-Castanon

View profile information

Personal Profile

http://www.alfnie.com

1Rank
17Badges
16610Score

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)...

6 hours and 29 minutes ago

Alfonso Nieto-Castanon liked Solution 462725

17 hours and 52 minutes ago

Alfonso Nieto-Castanon submitted a Comment to Problem 2403. Best Square-Shaped Grid for Subplot

I imagine that you could more precisely define what the "optimum" solution you are after is by saying something along the lines of "the solution that leaves the least empty plots while keeping the difference between the number of rows and columns to 1 or less"?

on 8 Jul 2014 at 8:16

Alfonso Nieto-Castanon submitted Solution 465109 to Problem 2397. Leap Year

on 1 Jul 2014 at 23:41

Alfonso Nieto-Castanon submitted Solution 465107 to Problem 2397. Leap Year

on 1 Jul 2014 at 23:37

Alfonso Nieto-Castanon submitted a Comment to Solution 296653

'freepass' is just a (cute but ridiculous) hack (see problem http://www.mathworks.com/matlabcentral/cody/problems/1774-free-passes-for-everyone ). The 'please' part is because we are really polite...

on 28 Jun 2014 at 5:11

Alfonso Nieto-Castanon submitted a Comment to Problem 2390. Fair Scoring for Cody

Hi Nicholas, that is a very good idea, the main problem would be to solve the correspondence between the different times regexp is called and the different times it might appear in the code, but perhaps using dbstack we could resolve this? (of course we could just penalize for each time it is called even if that might produce very high penalties for loops, etc.) thoughts?

on 26 Jun 2014 at 16:41

Alfonso Nieto-Castanon submitted a Comment to Problem 2390. Fair Scoring for Cody

this is a very hard problem to solve in general. For example consider the following cases (the score in the first three cases should be penalized with additional 4 points, while in the latter three cases it should not): 1) regexp('',strcat('(?','@a=1)')); 2) str='(?@a=1)';regexp('',str); 3) regexp(' ',char(')@Ab>2*'-1)); 4) regexp('',strcat('(?','a=1)')); 5) str='(?@a=1)';regexp(str,''); 6) regexp(' ',char(')@Ab>2*'+1));

on 26 Jun 2014 at 3:49

Alfonso Nieto-Castanon submitted a Comment to Problem 2390. Fair Scoring for Cody

I believe you need to redefine the 'newline' variable in all of your testsuite cases?

on 26 Jun 2014 at 0:49