Cody

Recent Activity

1 – 50 of 9,898

Nhat Lam Nguyen submitted a Comment to Solution 1944913

niceeeeeeeeee

47 minutes ago

Lamour Haithem Firass submitted a Comment to Solution 5422

i want to know how does the second line work , i don't understand the reslut ,can u help???,

2 hours and 6 minutes ago

Lamour Haithem Firass submitted a Comment to Problem 12. Fibonacci sequence

give me a new think about numbers

2 hours and 14 minutes ago

Lamour Haithem Firass submitted a Comment to Solution 1865516

me2

3 hours and 47 minutes ago

Lamour Haithem Firass submitted a Comment to Problem 44311. Number of Even Elements in Fibonacci Sequence

i have the program on my matlab it work normaly but cody does not accepet the code don't know why????? function y = evenFibo(n) y(1) = 1;y(2) = 1; for i = 3:n y(i) = y(i-1) + y(i-2); end e = y; E = mod(e,2) == 0; evennumbers = e(E); y = length(evennumbers); if n > 2 fprintf('The even Fibo number is: %d',y) end end

3 hours and 47 minutes ago

Vu Thanh Nam submitted a Comment to Problem 605. Whether the input is vector?

nice!!!

6 hours and 35 minutes ago

Augusto Mazzei submitted a Comment to Solution 1944616

this solution works on my comupter I see the first test command line is corrupted %%x=3 :( :( :(

13 hours and 13 minutes ago

George Baker submitted a Comment to Solution 1943859

Test 1 doesn't work, I literally have the same result and it fails, but test 2 passes

on 20 Sep 2019 at 10:36

Augusto Mazzei submitted a Comment to Solution 53910

Mr Castanon is a true god. I preferred asking wolfram solver. Wish I studied infinite series properly at school

on 19 Sep 2019 at 18:15

Simon Thomas submitted a Comment to Problem 65. Word Counting and Indexing

There seems to be no check on the word indexing part of the problem. I passed the test suite without indexing at all.

on 19 Sep 2019 at 9:10

Simon Thomas submitted a Comment to Solution 1942530

There seems to be no check on the word indexing part of the problem. I passed the test suite without indexing at all.

on 19 Sep 2019 at 9:09

Christian Schröder submitted a Comment to Problem 44967. Hello

Good problem, but a duplicate of <a href="https://www.mathworks.com/matlabcentral/cody/groups/34/problems/44384">problem 44384</a>.

on 18 Sep 2019 at 20:49

Le Huu Hai submitted a Comment to Problem 25. Remove any row in which a NaN appears

Oh

on 18 Sep 2019 at 16:06

Phan Hoang Tao submitted a Comment to Problem 1974. Length of a short side

Good one

on 17 Sep 2019 at 16:41

Simon Thomas submitted a Comment to Solution 1939228

Happier now. Loop though nList handled in test suite. No loop in my function and returns the 2 primes closest together

on 17 Sep 2019 at 10:29

Simon Thomas submitted a Comment to Solution 1939224

given that the looping through nList is handled in the test suite, I don't need to.

on 17 Sep 2019 at 10:11

goc3 submitted a Comment to Problem 44273. Given a square and a circle, please decide whether the square covers more area.

No, that test suite is fine, since he uses those random values to calculate y_correct. Also, for that other test with 3>7, he's using that to create a false logical value for y_correct.

on 16 Sep 2019 at 12:37

goc3 submitted a Comment to Problem 1696. Morse Code Generator! Try it!

The test suite should be working now. I fixed the parentheses problem mentioned in the other comments (it should now recognize left and right parentheses as different). There were also seven spaces between words in the test suite, though the encoded description indicated five—that has been fixed, as well.

on 16 Sep 2019 at 12:31

Nguyen Huu Hung submitted a Comment to Problem 645. Getting the indices from a vector

hay

on 14 Sep 2019 at 13:08

Lohendran letchmanan submitted a Comment to Solution 1935707

its hard

on 14 Sep 2019 at 9:38

... submitted a Comment to Solution 1935431

good

on 14 Sep 2019 at 4:58

Jillian Beacon submitted a Comment to Problem 3. Find the sum of all the numbers of the input vector

vecsum doesn't work in my 2018b software and I can't find vecsum in my documentation. Where is it?

on 13 Sep 2019 at 16:36

Richa Singh submitted a Comment to Solution 1934272

What exactly the error is

on 13 Sep 2019 at 9:09

Abuzar Qureshi submitted a Comment to Solution 1931727

Nice and Easy

on 12 Sep 2019 at 5:30

Hieu Tran submitted a Comment to Solution 1930828

whyyyyy

on 11 Sep 2019 at 15:21

Nikolaos Nikolaou submitted a Comment to Problem 2091. return row and column indices given 2 values which define a range

still problem with test suit x2=3; x3=9; [fr1,fc1]=find(and(x1&gt;=x2,x1&lt;x3)) fails

on 10 Sep 2019 at 13:50

Nhat Lam Nguyen submitted a Comment to Solution 1928846

From Viet Nam with love

on 10 Sep 2019 at 10:39

Nhat Lam Nguyen submitted a Comment to Problem 3. Find the sum of all the numbers of the input vector

great problem

on 10 Sep 2019 at 10:37

Nhat Lam Nguyen submitted a Comment to Solution 1928827

good

on 10 Sep 2019 at 10:34

Nhat Lam Nguyen submitted a Comment to Solution 1928761

easy

on 10 Sep 2019 at 10:11

Nhat Lam Nguyen submitted a Comment to Solution 1928749

nice

on 10 Sep 2019 at 10:06

Nikolaos Nikolaou submitted a Comment to Problem 2635. Higher! Lower!

test suit is broken plz fix since its a budge problem

on 9 Sep 2019 at 17:49

David Hill submitted a Comment to Problem 44961. RSA decryption

Sorry, I did not mean to do that. Fixed.

on 8 Sep 2019 at 23:27

William submitted a Comment to Problem 44961. RSA decryption

David -- Good problem. I got sidetracked by the fact that the arguments 'd' and 'n' in the solution template are reversed from the order that they are provided in the test problems.

on 8 Sep 2019 at 20:22

Ahmed Nazir submitted a Comment to Problem 22. Remove the vowels

#WARNING Character Array And String are not similar. length('abc') % 3 length("abc") % 1 so 'abc' is NOT EQUAL to "abc" use "char" function to get character array from string char("abc") % 'abc'

on 7 Sep 2019 at 7:06

Tim Wilkin submitted a Comment to Solution 858845

This is not a valid solution. It does not meet the requirement of elements in each subset being sorted. Try the input [1 3 2] and it does not give sorted subsets.

on 5 Sep 2019 at 23:23

Faraj Abdelglil submitted a Comment to Problem 2693. Test if a matrix is symmetric

I don't know

on 4 Sep 2019 at 6:35

David Hill submitted a Comment to Problem 44959. RSA encryption using public key

Convert byte array into an integer/biginteger

on 3 Sep 2019 at 14:36

Renato SL submitted a Comment to Problem 44947. Find the Oldest Person in a Room

In the first test suite, Robinson and Reed both have the same age, so I think either the test suite should be improved or Reed's age in the .mat file should be changed.

on 3 Sep 2019 at 9:20

William submitted a Comment to Problem 44959. RSA encryption using public key

Sorry, but I don't understand your instruction to "convert the uint8 array to a long integer string". Could you be more specific?

on 3 Sep 2019 at 0:47

Md Saif Ansari submitted a Comment to Problem 167. Pizza!

Very Nice Question!

on 2 Sep 2019 at 22:20

Doan Quang Manh submitted a Comment to Solution 1172620

nice :)

on 2 Sep 2019 at 14:29

Timothy Chavez submitted a Comment to Solution 1917732

This solution seems to run correctly in MATLAB (desktop)... can anyone tell me why it is coming back with an "Assertion Failed"? function vec = makeRandomOrdering(n) vec = zeros(1, numel(n)); flags = zeros(1, numel(n)); index = 1; while (sum(flags) ~= numel(n)) pos = randi(numel(n)); if (flags(pos) ~= 1) vec(index) = n(pos); index = index + 1; flags(pos) = 1; end end end

on 31 Aug 2019 at 22:50

Ryan McBurney submitted a Comment to Problem 568. Number of 1s in a binary string

Something weird is happening When I submit the size of my code is -1 and it fails the test suite when it seems to work fine in MATLAB desktop.

on 30 Aug 2019 at 20:19

Malcolm Wildgoose submitted a Comment to Solution 1915445

Nice!

on 29 Aug 2019 at 15:54

Tim submitted a Comment to Solution 1915449

Googling can supplant programming sometimes.

on 29 Aug 2019 at 13:37

Quan Nguyen Dang submitted a Comment to Problem 43298. Calculate area of sector

is good

on 29 Aug 2019 at 13:26

David Hill submitted a Comment to Problem 44956. Determine RSA keys (public and private) given two prime number character strings (p and q)

Tim, you are absolutely correct. Thanks for the comment. I fixed the test cases.

on 28 Aug 2019 at 22:46

Tim submitted a Comment to Problem 44956. Determine RSA keys (public and private) given two prime number character strings (p and q)

If I understand correctly, we should have mod(d*e,phi)=1, where phi=(p-1)*(q-1). My answers seem to satisfy that condition, but test cases 2, 3, and 4 do not.

on 28 Aug 2019 at 21:23

1 – 50 of 9,898