Solved

Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

Solved

Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

Solved

Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

Solved

Is it a number?
Determine if input is numeric. If it is,output is 1; if it is not, output is 0.

Solved

Spherical Volume
Calculate the volume of a sphere.

Solved

Perimeter of a semicircle
Given the diameter d, find the perimeter of a semicircle

Solved

Find the sum

Solved

Number Power
Raise a number to itself.

Solved

The answer to life the universe and everything
Write a function that gives the answer to life the universe and everything to every input except the input is 42. In this case t...

Solved

Ounces to Kilograms
convert ounces to kilograms, easy

Solved

Temperature Conversion 2

Solved

Temperature Conversion 3

Solved

Temperature Conversion 1

Solved

Mass Conversion 1

Solved

Divide by 4
Given the variable x as your input, divide it by four and put the result in y.

Solved

Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; ...

Solved

Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

Solved

Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

Solved

Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

Solved

Convert from Fahrenheit to Celsius
Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

Solved

Calculate the answer to life the universe and everything
<https://en.wikipedia.org/wiki/42_(number)>

Solved

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

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:*...

Solved

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...

Solved

Bottles of beer
Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...

Solved

Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<https://i.imgu...

Solved

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

Solved

Multiply pi
Multiply pi with x!