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

Recent Activity

Omer submitted a Comment to Problem 2403. Best Square-Shaped Grid for Subplot

Alfonso you're right. The optimum word could have been elaborated like that. I appreciate your effort.

3 hours and 6 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)...

16 hours and 41 minutes ago

rifat ahmed submitted a Comment to Problem 2409. find the path

syntax error at y_correct. Remove spaces between '=' and '['

22 hours and 57 minutes ago

Jan Orwat submitted a Comment to Solution 468023

It won't work correctly for n greater than 10. :-) ans-7*(ans>10) would fix that.

on 9 Jul 2014 at 11:32

Mehmet OZC submitted a Comment to Problem 2408. Find the biggest digit in a matrix

"the test suit is wrong" statement is not true.

on 9 Jul 2014 at 10:27

Mehmet OZC submitted a Comment to Problem 2408. Find the biggest digit in a matrix

I have added NaN and Inf to the test suites

on 9 Jul 2014 at 9:23

Jan Orwat submitted a Comment to Problem 2408. Find the biggest digit in a matrix

hehe, for now there is only one solution which works correctly when there is a NaN or an Inf in the input.

on 9 Jul 2014 at 9:16

Rani submitted a Comment to Problem 2408. Find the biggest digit in a matrix

the test suit is wrong

on 9 Jul 2014 at 5:11

Vinod Sudheesh submitted a Comment to Solution 467742

nice one.

on 8 Jul 2014 at 12:45

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

Omer submitted a Comment to Problem 2403. Best Square-Shaped Grid for Subplot

hello Ned. if you have 5 plots 3*2 grid subplotting will look better. similarly if x = 11, 4*3 subplot will look better shape. for some instances m=n for some not. thats the tricky part of the question :)

on 8 Jul 2014 at 6:52

Harish Maradana submitted a Comment to Solution 467518

improve test suite

on 8 Jul 2014 at 3:40

Ned Gulley submitted a Comment to Problem 2403. Best Square-Shaped Grid for Subplot

Hi Omer: It sounds to me like m should always equal n if we want the result to be square-shaped. Can you explain when it's okay for m ~= n?

on 7 Jul 2014 at 15:34

rifat ahmed submitted a Comment to Solution 466738

change your file name to two_b_or_not_two_b

on 6 Jul 2014 at 9:30

Nishat Savat submitted a Comment to Solution 466738

why it displays cannot read input file.

on 6 Jul 2014 at 8:43

Nishat Savat submitted a Comment to Solution 466713

thats a tricky one. it really helps to improve coding practice.

on 6 Jul 2014 at 7:31

Harish Maradana submitted a Comment to Solution 466650

please improve test suite

on 6 Jul 2014 at 4:55

Harish Maradana submitted a Comment to Solution 466649

improve test suit

on 6 Jul 2014 at 4:54

Harish Maradana submitted a Comment to Problem 2353. Sum of the Matrix Elements

improve test suit

on 6 Jul 2014 at 4:37

Omer submitted a Comment to Solution 466277

perfect!

on 4 Jul 2014 at 19:16

Nick submitted a Comment to Problem 460. Replace May with April

header of problem definition contradicts with example give. Please correct the given examples.

on 4 Jul 2014 at 15:19

Nick submitted a Comment to Solution 466036

Function 'decimalToBinaryVector'is not recognized. Why not?

on 3 Jul 2014 at 18:26

Ned Gulley submitted a Comment to Problem 2395. Simple Past of Regular Verbs

I like it! Now let's see some German and French...

on 3 Jul 2014 at 15:56

rifat ahmed submitted a Comment to Problem 2398. FIFA World Cup 2014 : Offside

Thanks for pointing it out :-).. Corrected that. In reality, it wont be offside, since team 1 is in attack. However, I found it kind of difficult to define one team being in attack. So, corrected it anyway.

on 3 Jul 2014 at 15:51

Tim submitted a Comment to Problem 2398. FIFA World Cup 2014 : Offside

In test case 3, the closest players to goalie 1 are all 3's--aren't they offside?

on 3 Jul 2014 at 13:45

Oussama Ben Smida submitted a Comment to Problem 149. Is my wife right?

HaHa!

on 3 Jul 2014 at 10:34

James submitted a Comment to Solution 465535

Whoops. The answer needs to be a number, not a string.

on 2 Jul 2014 at 19:18

Omer submitted a Comment to Solution 464773

i have a 25 sized solution but it doesnt accept since i used symbolic toolbox :)

on 2 Jul 2014 at 9:02

Omer submitted a Comment to Solution 465056

great! well done

on 2 Jul 2014 at 9:01

Guillaume submitted a Comment to Solution 464773

Oh yes, I missed that you were using BigDecimal instead of BigInteger.

on 2 Jul 2014 at 8:55

Clemens Giegerich submitted a Comment to Solution 464773

There are a constructors for int and double: http://docs.oracle.com/javase/1.5.0/docs/api/java/math/BigDecimal.html#BigDecimal(int) http://docs.oracle.com/javase/1.5.0/docs/api/java/math/BigDecimal.html#BigDecimal(double)

on 2 Jul 2014 at 8:25

Guillaume submitted a Comment to Solution 464773

Admittedly, I know very little about Java but I'm suprised this work since I can't find a constructor that takes a double. Only strings, byte patterns or random number generators. Care to explain?

on 1 Jul 2014 at 18:22

Omer submitted a Comment to Solution 464605

good effort!

on 1 Jul 2014 at 9:44

Kumar Sandeep submitted a Comment to Problem 2397. Leap Year

Thanks George.Am extremely sorry for that.I just corrected it.

on 1 Jul 2014 at 6:38

George Berken submitted a Comment to Problem 2397. Leap Year

Actually I just realized it is the "isequal" is missing in test #4.

on 30 Jun 2014 at 20:36

George Berken submitted a Comment to Problem 2397. Leap Year

Kumar, in problem #4 there is one to many right parenthesis. George...

on 30 Jun 2014 at 20:34

José Ramón Menzinger submitted a Comment to Solution 454444

HAHAHAHA Master!! Mr. Grant should take your quest... on that way maybe I reach the "leader score" for this problem! :-P

on 29 Jun 2014 at 21:43

José Ramón Menzinger submitted a Comment to Problem 2395. Simple Past of Regular Verbs

Very nice one! ;-)

on 29 Jun 2014 at 21:32

Kumar Sandeep submitted a Comment to Problem 2394. Permutation

Am extremely sorry for that.Thanks for that.I edited it now.Thanks alot Beltramini

on 29 Jun 2014 at 19:10

Nick submitted a Comment to Problem 719. Rotate a Matrix by 90 degrees

similar to Problem 412. Back to basics 22 - Rotate a matrix

on 29 Jun 2014 at 16:26

Nick submitted a Comment to Solution 463965

DecimalToBinaryVector is regarded as undefined function ???

on 29 Jun 2014 at 14:32

Nick submitted a Comment to Problem 412. Back to basics 22 - Rotate a matrix

Very nice problem to solve

on 29 Jun 2014 at 13:39

Guilherme Coco Beltramini submitted a Comment to Problem 2394. Permutation

In the last test, it is written "y-correct" instead of "y_correct". You should add tests with words that contain letters repeated more than two times.

on 29 Jun 2014 at 13:39

Omer submitted a Comment to Solution 463328

hehe

on 29 Jun 2014 at 0:28

Nick submitted a Comment to Solution 463743

Very very tricky problem

on 28 Jun 2014 at 19:05

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

213 submitted a Comment to Solution 296653

why it's 'freepass.please',not other words else?

on 28 Jun 2014 at 2:29

Nicholas Howe submitted a Comment to Solution 462917

I believe this solution misses the point! ;-)

on 27 Jun 2014 at 19:58

Guilherme Coco Beltramini submitted a Comment to Problem 2024. Triangle sequence

Very interesting problem!

on 26 Jun 2014 at 21:17

Nicholas Howe submitted a Comment to Problem 2390. Fair Scoring for Cody

The same regexp expression could potentially be called more than once with different dynamic code each time. It might be best to count the score of each unique code string from each separate invocation point -- that seems most in keeping with the spirit of the current rules. You're right that it would be quite complex to keep track. Thanks for pointing out the problem with newline, by the way. I think it is fixed now.

on 26 Jun 2014 at 17:03