Solved


Back to basics 15 - classes
Covering some basic topics I haven't seen elsewhere on Cody. Return the class of the input variable.

nästan 4 år ago

Solved


Y=X
Given an input variable x, output a variable y that is equal in value to x. Example: Input x = 1 Output y is 1 Inp...

nästan 4 år ago

Solved


Multiply by 3
Given the variable x as your input, multiply it by three and put the result in y.

nästan 4 år ago

Solved


only input
Return the output without writing any code into the function.

nästan 4 år ago

Solved


first element of matrix
find the first elements of a column matrix

nästan 4 år ago

Solved


Speed of car
Calculate the Speed of car given its Distance travelled and time taken in x and y respectively

nästan 4 år ago

Solved


Square root of a number
Write a code that will output the square root of x.

nästan 4 år ago

Solved


Write a code that will follow the equation y = x * (x + x) * x.
If x = 5, y = 5 * (5+5) * 5 = 250

nästan 4 år ago

Solved


Determine the square root
Determine the square root of the value the user has entered, n.

nästan 4 år ago

Solved


Test Problem; Create a 5x5 array containing all ones
This is a test for learning the process of creating a Cody problem. The goal of this test problem will be to create an array,...

nästan 4 år ago

Solved


Area of a circle
Find the value for area of the circle if diameter is given

nästan 4 år ago

Solved


Area of a Square
Inside a square is a circle with radius r. What is the area of the square?

nästan 4 år ago

Solved


Area of a triangle
A triangle is given with base *'b'* ,vertical hight *'h'* . then find it's area.

nästan 4 år ago

Solved


Energy of a photon
*&#9883 &#9762 &#9883 &#9762 &#9883 &#9762 &#9883* Given the frequency F of a photon in giga hertz. Find energy E of this...

nästan 4 år ago

Solved


Back to basics 26 - Keywords
Covering some basic topics I haven't seen elsewhere on Cody. Return a cell array of strings of all MATLAB keywords.

nästan 4 år ago

Solved


Return area of square
Side of square=input=a Area=output=b

nästan 4 år ago

Solved


The great 82-year-old
Let's answer the question below; 'I am *x* years old and I have never written programs. If I study from now, will I be able ...

nästan 4 år ago

Solved


determine amount cookies left
started with 3 cookies and you never ate any how many are left

nästan 4 år ago

Solved


Find hen's weight.
If hen weights x kilos on two legs, how much does it weights on one leg? Output the result.

nästan 4 år ago

Solved


Who invented zero?
We know the importance zero in computer science, mathematics... but who invented zero? Clue: He was the first in the line ...

nästan 4 år ago

Solved


Your favourite city!
Type your favourite city.

nästan 4 år ago

Solved


Who is the smartest MATLAB programmer?
Who is the smartest MATLAB programmer? Examples: Input x = 'Is it Obama?' Output = 'Me!' Input x = 'Who ?' Ou...

nästan 4 år ago

Solved


Do you like your boss?
Do you like your boss? Answer can be any string! For example: Boss = 'Do you like your boss?'; Output = 'yes' or ...

nästan 4 år ago

Solved


What number has this problem?
This problem is added because it is problem number *???* in the "Community" problems section. <http://www.mathworks.de/matlab...

nästan 4 år ago

Solved


Number of Horns on a unicorn!
Calculate the number of horns on a *unicorn*! And I'm talking about a unicorn with not more than one horn on it!

nästan 4 år ago

Solved


The Answer to Life, the Universe, and Everything
A variation of a previous Hitchhiker's Guide to the Galaxy problem. *Inputs:* Life, the Universe, and Everything *Output:*...

nästan 4 år ago

Solved


Find the hypotenuse
Given a and b (the two sides of a right-triangle), find c, the hypotenuse.

nästan 4 år ago

Solved


sum of first 'n' terms
Given n=10, find the sum of first 'n' terms Example: If n=10, then x=1,2,3,4,5,6,7,8,9,10. The sum of these n=10 terms is 55...

nästan 4 år ago

Solved


square number
Square a number

nästan 4 år ago

Solved


Return the largest number that is adjacent to a zero
This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...

nästan 4 år ago

Load more