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

nästan 3 år ago

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

nästan 3 år ago

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

nästan 3 år ago

Solved


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

nästan 3 år ago

Solved


Spherical Volume
Calculate the volume of a sphere.

nästan 3 år ago

Solved


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

nästan 3 år ago

Solved


Find the sum

nästan 3 år ago

Solved


Number Power
Raise a number to itself.

nästan 3 år ago

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

nästan 3 år ago

Solved


Ounces to Kilograms
convert ounces to kilograms, easy

nästan 3 år ago

Solved


Temperature Conversion 2

nästan 3 år ago

Solved


Temperature Conversion 3

nästan 3 år ago

Solved


Temperature Conversion 1

nästan 3 år ago

Solved


Mass Conversion 1

nästan 3 år ago

Solved


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

nästan 3 år ago

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

nästan 3 år ago

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

nästan 3 år ago

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

nästan 3 år ago

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]

nästan 3 år ago

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

nästan 3 år ago

Solved


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

nästan 3 år ago

Solved


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

nästan 3 å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 3 år ago

Solved


Your favourite city!
Type your favourite city.

nästan 3 å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 3 år ago

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

nästan 3 år ago

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

nästan 3 år ago

Solved


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

nästan 3 år ago

Solved


Multiply pi
Multiply pi with x!

nästan 3 år ago

Solved


Calculate the square of a number (Super Easy)
The goal is to calculate the square (y) of a number (x). Good way to start MatLab for beginners.

nästan 3 år ago

Load more