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

Jon submitted a Comment to Solution 502014

At the time of submission, all better scores use either a lookup table or regexp.

44 minutes ago

Jon submitted a Comment to Problem 2591. Does the coin touch the line?

Need some test cases where only one dimension doesn't fit

1 hour and 12 minutes ago

Vishal submitted a Comment to Problem 2592. LocateMembership | Membership of Matrix in another matrix

@rifat : updated, thanks for info

8 hours and 42 minutes ago

Jean-Marie SAINTHILLIER submitted a Comment to Problem 2592. LocateMembership | Membership of Matrix in another matrix

Not logic to ask a scalar (if no location), an array (if 1), and a cell (if 2). And why not add the example (difficult) in the tests ?

16 hours and 51 minutes ago

Kai submitted a Comment to Solution 502134

This is the best I can do...

17 hours and 36 minutes ago

Jan Orwat submitted a Comment to Problem 2561. expand intervals vol.3

Should be ok now. Using <problem_number> seems to be not a good idea here. I have to check other problems I've submitted :-)

17 hours and 46 minutes ago

Jan Orwat submitted a Comment to Problem 2561. expand intervals vol.3

Newer checked that. Thanks for pointing that out.

17 hours and 53 minutes ago

rifat ahmed submitted a Comment to Problem 2592. LocateMembership | Membership of Matrix in another matrix

in test case 3, b is not available in a. I might be wrong.. Please Check

20 hours and 6 minutes ago

Jean-Marie SAINTHILLIER submitted a Comment to Problem 2561. expand intervals vol.3

In the explanations, links are to problems, but in the solve page, links are to solutions.

20 hours and 36 minutes ago

Georges submitted a Comment to Problem 180. Omit columns averages from a matrix

Totally agree with James!!!

22 hours and 41 minutes ago

Georges submitted a Comment to Solution 502019

I modified the test suite a little bit!!

22 hours and 55 minutes ago

Ned Gulley submitted a Comment to Problem 2589. Find Elements in Range

I love the fact that you based this on a question from Answers! I kind of wanted to link back to it, but I can see that you might not want people to see your answer.

23 hours and 35 minutes ago

J.R.! Menzinger submitted a Comment to Problem 2544. Determine if given number is perfect

The point "the sum of its factors" is not correct. it must be "the sum of all his divisors"... :-/

on 16 Sep 2014 at 14:05

Vishal submitted a Comment to Problem 546. Is A the inverse of B?

Test suite not proper

on 16 Sep 2014 at 13:30

Vishal submitted a Comment to Solution 501956

Problem is good, but tet cases are contradict to conditions.

on 16 Sep 2014 at 11:19

Vishal submitted a Comment to Solution 501949

big size ...!

on 16 Sep 2014 at 11:02

Pritesh Shah submitted a Comment to Problem 2590. Create anti identity matrix

Good...

on 16 Sep 2014 at 9:20

PARTH PATEL submitted a Comment to Solution 126061

agreed with Oscar

on 16 Sep 2014 at 8:23

Jean-Marie SAINTHILLIER submitted a Comment to Problem 1510. Number of digits in an integer

Add tests with 100,1000... Solutions with ceil are wrong.

on 16 Sep 2014 at 7:59

J.R.! Menzinger submitted a Comment to Solution 501606

Thanks! ;-)

on 16 Sep 2014 at 7:02

rifat ahmed submitted a Comment to Problem 2588. Find my secret number

hope you wont change the test suite

on 15 Sep 2014 at 17:39

rifat ahmed submitted a Comment to Solution 501606

so simple that it never occurred to me

on 15 Sep 2014 at 16:19

Jean-Marie SAINTHILLIER submitted a Comment to Solution 501606

Yes !!

on 15 Sep 2014 at 16:05

Jean-Marie SAINTHILLIER submitted a Comment to Problem 2574. Replacing a row

154 incorrect solutions. A record ?

on 14 Sep 2014 at 22:08

Len submitted a Comment to Problem 7. Column Removal

Is there somewhere to go to receive advice on how to improve your code?

on 11 Sep 2014 at 14:05

Pritesh Shah submitted a Comment to Solution 492712

you can do...[A B]

on 11 Sep 2014 at 12:36

Georges submitted a Comment to Problem 2308. rectangle in circle

good one :)

on 11 Sep 2014 at 9:27

Grzegorz Knor submitted a Comment to Solution 498647

Thanks! The problem now is reformulated;)

on 11 Sep 2014 at 6:51

Georges submitted a Comment to Solution 498670

saba2tak :p

on 10 Sep 2014 at 15:17

Georges submitted a Comment to Problem 2573. Flipping

Your test suite is not appropriate!!!!

on 10 Sep 2014 at 14:58

Georges submitted a Comment to Solution 498647

Please check your test suites, results must have opposite signs.

on 10 Sep 2014 at 14:50

Pritesh Shah submitted a Comment to Problem 2520. Append two matrix as shown below example

You can add column like [x y] and row like[x;y]

on 10 Sep 2014 at 13:59

Pritesh Shah submitted a Comment to Solution 490042

use [A B].. Enjoy...

on 10 Sep 2014 at 13:58

Grzegorz Knor submitted a Comment to Solution 498402

Sorry for cheating, I didn't notice that there is string 'NaN' in test suite.

on 10 Sep 2014 at 8:47

J.R.! Menzinger submitted a Comment to Solution 498282

In this case you can pass only one argument. ;-)

on 10 Sep 2014 at 6:59

Pritesh Shah submitted a Comment to Problem 2574. Replacing a row

Problem in test case. Please remove Square breakte

on 10 Sep 2014 at 5:07

Matt Wolinsky submitted a Comment to Solution 498139

I still don't understand the scoring system I guess. Seems odd to me that the commented solution had size 43 ... but doing extra computation reduced this solution to size 33. (unless JIT is at the level to implicitly convert?)

on 10 Sep 2014 at 3:16

Matt Wolinsky submitted a Comment to Problem 109. Check if sorted

I agree it's not clear ... but y = ~var(nonzeros(sign(diff(x)))); works for both ascending/descending cases. (The test suite clarifies that ascending is the intended case)

on 10 Sep 2014 at 0:51

Ned Gulley submitted a Comment to Problem 2350. What is Sum Of all elements of Matrix

Thanks for the suggestions. I fixed with isequalwithequalnans.

on 9 Sep 2014 at 14:36

Georges submitted a Comment to Problem 2316. Spin Matrices

Neither for me :D

on 9 Sep 2014 at 13:55

J.R.! Menzinger submitted a Comment to Problem 2350. What is Sum Of all elements of Matrix

please use the function: isequalwithequalnans ;-)

on 8 Sep 2014 at 15:03

Abdullah Caliskan submitted a Comment to Problem 2350. What is Sum Of all elements of Matrix

I agree guys! something wrong

on 8 Sep 2014 at 12:57

Anand submitted a Comment to Solution 418112

good to learn with matrix scalar multiplication

on 8 Sep 2014 at 12:56

Ziko submitted a Comment to Problem 2350. What is Sum Of all elements of Matrix

isequalwithequalnans

on 8 Sep 2014 at 11:15

ABHILASH SINGH submitted a Comment to Solution 497397

the test suit is wrong it should be x.' for non complex and x' for complex one

on 8 Sep 2014 at 9:13

Grzegorz Knor submitted a Comment to Problem 2350. What is Sum Of all elements of Matrix

The problem is unsolvable due to the second test.

on 8 Sep 2014 at 9:08

Guillaume submitted a Comment to Problem 2350. What is Sum Of all elements of Matrix

isequal(NaN, NaN) always return false. By definition Nans are not equal to each other. If you want test that a result is NaN, either use isnan, or use isequaln

on 8 Sep 2014 at 8:34

Vishal submitted a Comment to Problem 2024. Triangle sequence

Interesting problem....!

on 8 Sep 2014 at 7:26

Jean-Marie SAINTHILLIER submitted a Comment to Problem 2544. Determine if given number is perfect

See problem 1012.

on 6 Sep 2014 at 16:46

Jean-Marie SAINTHILLIER submitted a Comment to Problem 2558. Find out sum of all elements of given Matrix

Most frequently asked Cody problem.

on 6 Sep 2014 at 16:44