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

Learn moreOpportunities for recent engineering grads.

Apply Today1Rank

17Badges

16610Score

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

5 hours and 18 minutes ago

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

5 hours and 22 minutes ago

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 submitted Solution 468247 to Problem 1959. German tank problem

17 hours and 54 minutes ago

Alfonso Nieto-Castanon submitted Solution 468245 to Problem 1959. German tank problem

17 hours and 54 minutes ago

Alfonso Nieto-Castanon submitted Solution 468241 to Problem 1959. German tank problem

17 hours and 59 minutes ago

Alfonso Nieto-Castanon submitted Solution 468231 to Problem 1959. German tank problem

18 hours and 7 minutes ago

Alfonso Nieto-Castanon submitted Solution 468227 to Problem 1959. German tank problem

18 hours and 9 minutes ago

Alfonso Nieto-Castanon submitted Solution 468224 to Problem 1959. German tank problem

18 hours and 10 minutes ago

Alfonso Nieto-Castanon submitted Solution 468086 to Problem 2407. Integer to boolean

on 9 Jul 2014 at 0:00

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

on 8 Jul 2014 at 22:55

Alfonso Nieto-Castanon submitted Solution 468027 to Problem 2406. possible ways through matrix

on 8 Jul 2014 at 21:28

Alfonso Nieto-Castanon submitted Solution 468026 to Problem 2406. possible ways through matrix

on 8 Jul 2014 at 21:27

Alfonso Nieto-Castanon submitted Solution 468023 to Problem 2405. The Number of Ways

on 8 Jul 2014 at 21:13

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 466923 to Problem 2404. Reshape a Vector

on 6 Jul 2014 at 21:40

Alfonso Nieto-Castanon submitted Solution 466317 to Problem 2403. Best Square-Shaped Grid for Subplot

on 4 Jul 2014 at 20:49

Alfonso Nieto-Castanon submitted Solution 465734 to Problem 2393. Measure a Special Distance

on 3 Jul 2014 at 3:47

Alfonso Nieto-Castanon submitted Solution 465728 to Problem 2402. Area of a Square

on 3 Jul 2014 at 3:12

Alfonso Nieto-Castanon submitted Solution 465727 to Problem 2393. Measure a Special Distance

on 3 Jul 2014 at 3:10

Alfonso Nieto-Castanon submitted Solution 465726 to Problem 2393. Measure a Special Distance

on 3 Jul 2014 at 3:08

Alfonso Nieto-Castanon submitted Solution 465725 to Problem 2393. Measure a Special Distance

on 3 Jul 2014 at 3:06

Alfonso Nieto-Castanon submitted Solution 465168 to Problem 2398. FIFA World Cup 2014 : Offside

on 2 Jul 2014 at 8:41

Alfonso Nieto-Castanon submitted Solution 465153 to Problem 2398. FIFA World Cup 2014 : Offside

on 2 Jul 2014 at 5:56

Alfonso Nieto-Castanon submitted Solution 465152 to Problem 2398. FIFA World Cup 2014 : Offside

on 2 Jul 2014 at 5:53

Alfonso Nieto-Castanon submitted Solution 465059 to Problem 2396. last n digit of a power function

on 1 Jul 2014 at 20:47

Alfonso Nieto-Castanon submitted Solution 465056 to Problem 2396. last n digit of a power function

on 1 Jul 2014 at 20:43

Alfonso Nieto-Castanon submitted Solution 464132 to Problem 2395. Simple Past of Regular Verbs

on 29 Jun 2014 at 23:55

Alfonso Nieto-Castanon submitted Solution 464100 to Problem 2394. Permutation

on 29 Jun 2014 at 20:53

Alfonso Nieto-Castanon submitted Solution 464095 to Problem 2394. Permutation

on 29 Jun 2014 at 20:25

Alfonso Nieto-Castanon submitted Solution 463756 to Problem 2254. Possible Opponents Matrix for single-elimination tournament

on 28 Jun 2014 at 19:59

Alfonso Nieto-Castanon submitted Solution 463610 to Problem 1748. Ripping numbers apart!

on 28 Jun 2014 at 7:19

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 Solution 463053 to Problem 2389. Max of a Vector

on 27 Jun 2014 at 5:03

Alfonso Nieto-Castanon submitted Solution 463052 to Problem 2392. Find the coefficient of a number in scientifc notation

on 27 Jun 2014 at 5:02

Alfonso Nieto-Castanon submitted Solution 463047 to Problem 2392. Find the coefficient of a number in scientifc notation

on 27 Jun 2014 at 4:54

Alfonso Nieto-Castanon submitted Solution 462423 to Problem 2390. Fair Scoring for Cody

on 26 Jun 2014 at 18:15

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 Solution 462504 to Problem 2387. Are you in XY plane?

on 26 Jun 2014 at 4:02

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 Solution 462444 to Problem 2390. Fair Scoring for Cody

on 26 Jun 2014 at 2:53

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

Alfonso Nieto-Castanon submitted Solution 461833 to Problem 2384. Integer or Float?

on 25 Jun 2014 at 5:50

Alfonso Nieto-Castanon submitted Solution 461827 to Problem 2384. Integer or Float?

on 25 Jun 2014 at 5:48

Alfonso Nieto-Castanon submitted Solution 461739 to Problem 2383. Kepler's Equation

on 25 Jun 2014 at 3:09

Alfonso Nieto-Castanon submitted Solution 461736 to Problem 2382. Inverse of Hilbert matrix

on 25 Jun 2014 at 3:06

Alfonso Nieto-Castanon submitted Solution 461734 to Problem 2381. Sum of digit range

on 25 Jun 2014 at 3:03