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

New to MATLAB?

Recent Activity

Hugo Conatus submitted a Comment to Solution 728896

This should be forbidden.

1 hour and 39 minutes ago

Peng Zhiyun submitted a Comment to Solution 727419

though I did not understand the question...

on 2 Sep 2015 at 11:49

Philipp submitted a Comment to Solution 727415

;-) now I get it...

on 2 Sep 2015 at 11:29

Peng Liu submitted a Comment to Problem 1018. Array GCD

Note that all solutions (which passed the limited test suite with small size) involving only pair-wise gcd calculations are indeed incorrect. Those solutions include the following ones: 1) min(gcd(a,min(a))); 2) min(gcd(a(1), a)); 3) min(min(bsxfun(@gcd,a,a.'))); To eliminate these incorrect solutions, please simply add a test case with a = [21 15 35].

on 1 Sep 2015 at 22:46

Steve Eddins submitted a Comment to Solution 347969

Alex, the tenth case case is false because there are only seven queens on the board.

on 1 Sep 2015 at 12:40

Ramsey Kropp submitted a Comment to Solution 726292

There has to be a better way

on 31 Aug 2015 at 17:11

alex submitted a Comment to Solution 347969

how can i view this solution, also, can you please explain to me why the tenth test case is false, i dont think it is wrong.

on 31 Aug 2015 at 10:37

Raihan Ahmed submitted a Comment to Solution 490157

write like this s2=regexprep(s1,'(?![aeiou])[a-z]','','ignorecase');

on 30 Aug 2015 at 17:37

Richard submitted a Comment to Problem 58. Tic Tac Toe FTW

Test suite problem. The first test calls my function twice, with different values for (a). To test this y function starts and endes with diagnostics: ---- function wins = ticTacToe(a) disp('a=') disp( a ) ... wins = unique( wins) end ------ The first test result is: ------ %% a = [ 1 0 0 0 -1 0 -1 0 1]; b = [0]; out = ticTacToe(a); assert(isequal(out(:), b(:))) a= 1 0 1 0 -1 0 -1 -1 1 wins = 4 8 a= 1 0 0 0 -1 0 -1 0 1 wins = Empty matrix: 0-by-1 Assertion failed. -----

on 29 Aug 2015 at 14:22

Richard submitted a Comment to Problem 66. Find the two-word state names

I keep getting 'inappropriate content' errors.

on 28 Aug 2015 at 22:21

Raihan Ahmed submitted a Comment to Solution 724614

Can anybody please explain the size ???? I just wrote 1 line !!!

on 27 Aug 2015 at 19:53

Alessandro submitted a Comment to Problem 42472. Counting pulses in a signal

I had to adjust the phase delay to get the right plot (it had a little offset). Is that normal?

on 27 Aug 2015 at 4:31

Lavkesh submitted a Comment to Solution 723453

Can anyone suggest how to reduce the size of the code ?

on 26 Aug 2015 at 13:59

Lavkesh submitted a Comment to Solution 310481

I don't understand why the size of this code is so huge, can anyone help ?

on 26 Aug 2015 at 13:57

Matt Eicholtz submitted a Comment to Problem 1771. Polygonal numbers

I think the numbers in the description may be wrong. For hexagonal numbers, shouldn't the progression be [1,6,15,28]?

on 25 Aug 2015 at 19:08

Gergely Patay submitted a Comment to Problem 42578. Prime checker

Are these zyante problems auto-generated from an other programming language? ("use the % operator", explicite array lengths, ridiculous for loops etc.)

on 25 Aug 2015 at 12:34

Gergely Patay submitted a Comment to Problem 42575. Travel speed

"Anonymous function name: EuclideanDist" :)

on 25 Aug 2015 at 9:08

Peng Liu submitted a Comment to Problem 2587. Find indices of diagonal elements

Agree with Jon's comment that the matrix should contain 0 elements

on 24 Aug 2015 at 22:57

Steve Eddins submitted a Comment to Problem 263. Nonuniform quantizer as a piecewise constant function

Fixed. Thanks.

on 24 Aug 2015 at 12:46

qloreyze ueyzzyyc submitted a Comment to Solution 720471

It works on matlab

on 24 Aug 2015 at 11:49

vaibhav hosur submitted a Comment to Problem 42513. check whether it is prime or not

yupp

on 24 Aug 2015 at 9:01

Azhar submitted a Comment to Problem 42513. check whether it is prime or not

thanks vaibhav, btw its all about exploring commands in matlab.

on 24 Aug 2015 at 8:55

vaibhav hosur submitted a Comment to Problem 42513. check whether it is prime or not

Good problem Azhar

on 24 Aug 2015 at 8:54

Alfonso Nieto-Castanon submitted a Comment to Problem 42531. volume of torus

solutions are rounded in a somewhat arbitrary fashion...

on 24 Aug 2015 at 7:11

Azhar submitted a Comment to Problem 42521. To convolve two vectors

thanks

on 24 Aug 2015 at 6:21

Azhar submitted a Comment to Problem 42524. Xor of matrix

thanks for reminding

on 24 Aug 2015 at 6:21

mawlndjr xslkveal submitted a Comment to Problem 42477. Model a simple pendulum

tricky one!

on 23 Aug 2015 at 23:18

erqnzgaa svruehal submitted a Comment to Solution 720107

This solution is correct. I've checked the result for the 2. test vector a in Matlab and it gives correct value.

on 23 Aug 2015 at 21:12

Matt Eicholtz submitted a Comment to Problem 263. Nonuniform quantizer as a piecewise constant function

I think the first line should read x<-3, not x<3.

on 22 Aug 2015 at 21:01

Jean-Marie Sainthillier submitted a Comment to Problem 42323. With apologies to William Blake

Always difficult with James.

on 22 Aug 2015 at 0:43

mawlndjr xslkveal submitted a Comment to Problem 42525. Vigenere cipher - be like Sherlock Holmes!

thanks, I missed that mistake. it should be ok right now.

on 21 Aug 2015 at 23:20

Peng Liu submitted a Comment to Problem 42525. Vigenere cipher - be like Sherlock Holmes!

Please kindly note that your test case 3 (a='az' b='za' y_correct='zz') is wrong. If you re-score all solutions, I think none of them would pass this test case. However, you may need to re-score multiple times because ind = randi(3) does not necessarily yield ind = 3.

on 21 Aug 2015 at 21:17

Peng Liu submitted a Comment to Problem 42525. Vigenere cipher - be like Sherlock Holmes!

Your testsuite is still incomplete. I recommend you to include cases where Ciphertext and Key both contain upper and lower case letters

on 21 Aug 2015 at 20:37

mawlndjr xslkveal submitted a Comment to Problem 42525. Vigenere cipher - be like Sherlock Holmes!

thanks for advice! done! :)

on 21 Aug 2015 at 20:17

daniel lamont submitted a Comment to Problem 42525. Vigenere cipher - be like Sherlock Holmes!

you should add a test case like GrantII does in his 'divisible by X' problems... http://www.mathworks.com/matlabcentral/cody/problems/42408-divisible-by-6

on 21 Aug 2015 at 19:42

mawlndjr xslkveal submitted a Comment to Solution 719322

cheater. what's the point of doing that?

on 21 Aug 2015 at 18:52

Richard submitted a Comment to Solution 719312

I thought I'd need a class to save 'fh' and 'n', but it seems that nested functions are magical.

on 21 Aug 2015 at 16:47

Pritesh Shah submitted a Comment to Problem 42521. To convolve two vectors

y_correct = [4 18 43 51 36]

on 21 Aug 2015 at 5:32

Pritesh Shah submitted a Comment to Problem 42524. Xor of matrix

include [] in answer...

on 21 Aug 2015 at 5:28

mawlndjr xslkveal submitted a Comment to Problem 42524. Xor of matrix

incorrect test's cases.

on 20 Aug 2015 at 15:54

Zikobrelli submitted a Comment to Problem 42521. To convolve two vectors

Test suite flawed.Need to write y_correct as a vector.

on 20 Aug 2015 at 15:31

Tarun Jhamnani submitted a Comment to Problem 149. Is my wife right?

:)

on 20 Aug 2015 at 13:22

vaibhav hosur submitted a Comment to Problem 720. Find number of days

daysact(x1,x2) not working

on 20 Aug 2015 at 12:41

Celestino submitted a Comment to Solution 717785

I agree

on 20 Aug 2015 at 5:59

Binbin Qi submitted a Comment to Problem 42514. The Hills Are Alive...

Jean-Marie Sainthillier,I agree with you

on 20 Aug 2015 at 3:07

James submitted a Comment to Problem 42514. The Hills Are Alive...

I'm guessing there's a toolbox you have that isn't on Cody. Other people (myself included) have run into issues like that.

on 19 Aug 2015 at 23:56

mawlndjr xslkveal submitted a Comment to Problem 42514. The Hills Are Alive...

i've got correct answers in matlab. here i've got only 'Failed to evaluate' :c

on 19 Aug 2015 at 23:54

Jean-Marie Sainthillier submitted a Comment to Problem 42514. The Hills Are Alive...

The mathematical background required to solve correctly this problem is too high for me.

on 19 Aug 2015 at 23:35

Salman Shaikh submitted a Comment to Solution 717785

I don't think this problem will pass anytime as the test suite is faulty. In assertion your_function(x) is used and when i test my code Undefined function or variable 'x' occurs.

on 19 Aug 2015 at 20:56