Cody

Recent Activity

1 – 50 of 7,484

Xiaoyi Chin submitted a Comment to Solution 1221105

smart, ha ha

16 hours and 34 minutes ago

nadhirahjasri submitted a Comment to Solution 1272725

wow

on 20 Sep 2017 at 14:23

nadhirahjasri submitted a Comment to Solution 1272685

y

on 20 Sep 2017 at 14:07

nadhirahjasri submitted a Comment to Solution 1272668

this is cool!

on 20 Sep 2017 at 13:56

nadhirahjasri submitted a Comment to Solution 1272664

wow very fun!

on 20 Sep 2017 at 13:55

nadhirahjasri submitted a Comment to Solution 1272661

this is fun!

on 20 Sep 2017 at 13:53

nadhirahjasri submitted a Comment to Solution 1272656

wowda

on 20 Sep 2017 at 13:50

Xiaoyi Chin submitted a Comment to Solution 1272138

sorry, this is cheating.

on 20 Sep 2017 at 5:05

Informaton submitted a Comment to Solution 1222818

Very close! Just change your memory block so that it runs in parallel, instead of in series.

on 19 Sep 2017 at 14:01

Informaton submitted a Comment to Solution 1271474

I used a three input summing block instead of the given 2 input summer. I am not sure how to delete the unused two input summing block however. Is there a restriction against deleting given pieces?

on 19 Sep 2017 at 13:57

Xiaoyi Chin submitted a Comment to Solution 600565

the best answer ! thanks

on 19 Sep 2017 at 9:20

Xiaoyi Chin submitted a Comment to Solution 1257881

really cool!

on 19 Sep 2017 at 7:52

Xiaoyi Chin submitted a Comment to Problem 970. Piecewise linear interpolation

I think there is something wrong with the test.

on 18 Sep 2017 at 12:23

ccljohn123 submitted a Comment to Solution 1269220

Double fibonacci sequence, subtle! I love this problem!

on 16 Sep 2017 at 7:27

Jens Christiansen submitted a Comment to Solution 1269017

Used expm but the numbers didn't equal until I wrapped with int16.

on 15 Sep 2017 at 19:08

James submitted a Comment to Solution 1268428

*Checks help documentation for this command* Ahhh...Introduced in 2015a. That would be why I'm unfamiliar with it. Always appreciate learning commands from the newer versions of MATLAB!

on 15 Sep 2017 at 17:03

goc3 submitted a Comment to Problem 44331. Matrix Ax=B problem

Please improve the test suite. There are two glaring problems. First, there is only one test case—it is recommended that at least three be provided, though more are often necessary to prevent hard-coded workarounds. Second, do not provide the solution in the test case(s). For such a problem, the answer should be calculated beforehand and provided as a predefined number to hide the solution. Furthermore, candidate functions can be checked against the solution using an adequate error bound (perhaps within 1E-3) rather than isequal().

on 15 Sep 2017 at 16:08

goc3 submitted a Comment to Problem 44328. Sum two matrices

Additional test cases have been added.

on 15 Sep 2017 at 16:06

goc3 submitted a Comment to Problem 44326. Replace 0 indices in array with 1's

Please improve the test suite. There is only one test case—three is a recommended minimum, though more may be necessary to completely and adequately test what is being asked.

on 15 Sep 2017 at 16:01

goc3 submitted a Comment to Problem 44308. Component area

Please improve the test suite. There are two glaring problems. First, there is only one test case—it is recommended that at least three be provided, though more are often necessary to prevent hard-coded workarounds. Second, do not provide the solution in the test case(s). For such a problem, the answer should be calculated beforehand and provided as a predefined number to hide the solution. Furthermore, candidate functions can be checked against the solution using an adequate error bound (perhaps within 1E-3) rather than isequal().

on 15 Sep 2017 at 15:44

Xiaoyi Chin submitted a Comment to Solution 1267930

In fact, I did not get the sense of this problem....

on 14 Sep 2017 at 3:07

Andrew Dobrovolc submitted a Comment to Problem 774. Remove from a 2-D matrix all the rows that contain at least one element less than or equal to 4

Your test suite is has an incorrect answer, the last row contains a 4.

on 13 Sep 2017 at 12:17

Peng Liu submitted a Comment to Solution 1267206

The output of * operator in this solution is a struct, rather than a mPoly object. Nevertheless, the test suite does not check the type of the output.

on 13 Sep 2017 at 2:16

Peng Liu submitted a Comment to Problem 44260. Multivariate polynomials - convert monomial form to array

@Tim The correct output from coeffArray for A*x^2+B*x*y+C*y^2+D*x+E*y+F should be [0 0 A;0 B D;C E F]

on 13 Sep 2017 at 1:16

Peng Liu submitted a Comment to Problem 44261. Multivariate polynomials - sort monomials

The sorted coefficients in your example should be [1; 4; 3; -2].

on 12 Sep 2017 at 14:58

Jens Christiansen submitted a Comment to Solution 1266542

Forgetting 1 isn't prime doesn't help

on 11 Sep 2017 at 22:39

Matthew Eicholtz submitted a Comment to Solution 1266394

Test suite needs to be improved.

on 11 Sep 2017 at 18:25

Matthew Eicholtz submitted a Comment to Problem 44266. Sort the prime numbers in each row of a 3x3 matrix

Not sure why the problem title says "3x3 matrix", then uses non-3x3 matrices in the example and test suite. Considering rewording for clarity.

on 11 Sep 2017 at 18:07

Andrew Dobrovolc submitted a Comment to Solution 1266265

I believe the test cases are wrong, I could not prove that a matrix from randn(3) is orthogonal.

on 11 Sep 2017 at 15:24

Nishant Kumar submitted a Comment to Solution 1265983

Volume should be y = pi^2/32*(a+b)i*(b-a)^2

on 11 Sep 2017 at 5:00

goc3 submitted a Comment to Problem 44303. Find the sum of the largest two elements in a vector

Additional test cases have been added.

on 8 Sep 2017 at 19:49

goc3 submitted a Comment to Problem 44302. Check if inputted variable is a string or a number

Additional test cases have been added.

on 8 Sep 2017 at 19:45

goc3 submitted a Comment to Problem 44301. Find the mean of two vectors

Additional test cases have been added.

on 8 Sep 2017 at 19:43

goc3 submitted a Comment to Problem 44300. Matrix Generation from Vector Multiplication

Additional test cases have been added.

on 8 Sep 2017 at 19:39

goc3 submitted a Comment to Problem 44299. Vector Element Multiplication

Additional test cases have been added.

on 8 Sep 2017 at 19:35

goc3 submitted a Comment to Problem 44298. Simple Vector Addition

Additional test cases have been added.

on 8 Sep 2017 at 19:31

goc3 submitted a Comment to Problem 44297. Automatic String Editing

Additional test cases have been added.

on 8 Sep 2017 at 19:27

goc3 submitted a Comment to Problem 44296. String Delimination and Outputting

Additional test cases have been added.

on 8 Sep 2017 at 19:24

goc3 submitted a Comment to Problem 44295. More Simple String Concatenation

Additional test cases have been added.

on 8 Sep 2017 at 19:22

goc3 submitted a Comment to Problem 44294. Simple String Concatenation

Additional test cases have been added.

on 8 Sep 2017 at 19:19

goc3 submitted a Comment to Solution 1258970

Adrian, welcome to Cody. That looks like an interesting problem. Unfortunately, there are only two test cases, and they contain the same answer. Hence, many of the answers supplied so far seem to game the system by just returning that one value. Please consider including more test cases with different answers to discourage hard-coded solutions that don't actually solve the problem. Note that even though the problem has been posted, you can still edit it.

on 8 Sep 2017 at 19:11

goc3 submitted a Comment to Solution 1265012

Well, I learned that Cody does not have access to nanmean()...

on 8 Sep 2017 at 18:43

Jerry submitted a Comment to Solution 1238124

Hi @goc3. Thanks for the advice - that's my first posted problem!

on 8 Sep 2017 at 12:29

Luwe Yu submitted a Comment to Solution 1264504

yes indeed

on 7 Sep 2017 at 20:34

goc3 submitted a Comment to Solution 1238124

Jerry, you can test your solution against the test suite before posting the problem. On the edit page for the problem, there is space for a reference solution at the bottom along with a button to test the reference solution. It is good practice to include a reference function for each created problem to ensure that the test suite is solvable.

on 7 Sep 2017 at 18:06

goc3 submitted a Comment to Problem 44252. Deleting Specific part.

The test suite has been fixed so that it is now solvable.

on 7 Sep 2017 at 15:16

goc3 submitted a Comment to Problem 44250. Insert Special character in character cell array.

Additional test cases have been added.

on 7 Sep 2017 at 15:08

yurenchu submitted a Comment to Solution 318868

Nice trick with the 222.2 - very clever!

on 7 Sep 2017 at 15:01

Erik Luiten submitted a Comment to Solution 1263303

Yes you are correct, i have adjusted my code in 1264109

on 7 Sep 2017 at 9:34

Gabriel Delcros submitted a Comment to Problem 9. Who Has the Most Change?

Funny ;)

on 7 Sep 2017 at 7:09

1 – 50 of 7,484