Solved


Anyone for tennis? Your chances of winning a (standard) game
Imagine you are playing tennis, and for _each point_ played your chance of winning is |x| % (input as a |<https://au.mathworks.c...

2 months ago

Solved


Testing for randomness: uniform distribution of real numbers (distribution checking)
You will be presented with a variety of sequences of real numbers. Your job is to answer the question: "Is this a uniformly di...

2 months ago

Solved


Back to basics: adding comments to your code
One of the most useful skills a programmer can develop is the skill — or habit — of writing descriptive comments within/above th...

2 months ago

Solved


Testing for randomness: uniform distribution of integers
On Cody several problems have been set up asking players to generate one or more 'random' numbers. Usually they are asking for ...

2 months ago

Solved


Back to basics: throwing errors / exceptions
*Throwing and handling errors (or exceptions) is an important part of practical programming.* Here your task is to provide ...

2 months ago

Solved


Equilibrium
Is this tower of blocks going to fall? <<http://www.alfnie.com/software/equilibrium02.jpg>> *Description* Given a stack...

2 months ago

Solved


Logic 12

2 months ago

Solved


Logic 11

2 months ago

Solved


Logic x

2 months ago

Solved


Logic 9

2 months ago

Solved


Logic 8

2 months ago

Solved


Logic 6

2 months ago

Solved


Logic 5

2 months ago

Solved


Logic 4

2 months ago

Solved


Logic 3

2 months ago

Solved


Logic 2

2 months ago

Solved


Logic 1

2 months ago

Solved


Decipher the message - 3 key

2 months ago

Solved


Hash
eg: if x=127 and r = 5 1st digit 1+5=6; 2nd digit =2+5=7; 3rd digit = 7+5=12---> 3 (sum of digits 1+2 =3) then output y= 673 ...

2 months ago

Solved


Prouhet–Tarry–Escott (basic)
Inspired by <http://www.mathworks.com/matlabcentral/cody/problems/660-find-a-subset-that-divides-the-vector-into-equal-halves pr...

2 months ago

Solved


Modify subscripts
MATLAB supports object-oriented programming. Let's take an advantage of it in cody. This problem starts <http://uk.mathworks....

2 months ago

Solved


Modify subscripts - easier
MATLAB supports object-oriented programming. Let's take an advantage of it in cody. This problem focus on modifying subscript...

2 months ago

Solved


Open coded lock.
Guess the <hint://fliplr(anchortext) password> or break the <2314/solutions/new#test_suite_body lock>.

2 months ago

Solved


I want to know everything!
I am always a little bit paranoid. Now, I want to know what my co-workers do with my MATLAB when I am not here. Find (i...

2 months ago

Solved


Can you beat the lottery again (for hardcore coder) ?
Inspired by the Problem 1713 by Chris E. Here is the code that generates the first lottery number: rng('shuffle'); numb...

2 months ago

Solved


Number of active Cody players by date
I'm looking to start a series of problems related to web scraping. In this problem, you are given a date in 'dd mmm yyyy' format...

2 months ago

Solved


List of built-in demo images
Return a cell array containing the filenames for built-in images (e.g. cameraman.tif, coins.png). An optional input specifies wh...

2 months ago

Load more