Solved


find the roots of a quadratic equation
for e.g x = [ 2 -1 -3] y = [1.5 -1]

5 years ago

Solved


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

5 years ago

Solved


Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.

5 years ago

Solved


divide by 5

5 years ago

Solved


Divide pi
Divide pi by x!

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

5 years ago

Solved


y equals x divided by 2
function y = x/2

5 years ago

Solved


Add two numbers
Calculate the sum of two numbers. Example input = [2 3] output = 5

5 years 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]

5 years ago

Solved


Convert a Cell Array into an Array
Given a square cell array: x = {'01', '56'; '234', '789'}; return a single character array: y = '0123456789'

5 years ago

Solved


Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

5 years ago

Solved


easy problem
Find the last element of the array

5 years ago

Solved


the average value of the elements
Calculate the average value of the elements in the array

5 years ago

Solved


Sum of Two Numbers
Given two integer numbers x and y, calculate their sum and put it in z. Examples: Inputs x = 2, y = 4 Output z is 6 ...

5 years ago

Solved


Find square of given number
Find Square of any number

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

5 years ago

Solved


Square a Number
Given an input x, return y, which is equal to the square of x.

5 years ago

Solved


Cube root of max value in a vector
Find the cube root of the maximum value in a vector

5 years ago

Solved


Matrix Max Finder
Output the maximum value in a matrix

5 years ago

Solved


Min of a Matrix
Return the minimum value in the given matrix.

5 years ago

Solved


Is my wife right?
Regardless of input, output the string 'yes'.

5 years ago

Solved


Mode
Find the mode of the vector Assumption: no vector is bimodal Example 1: input=[1 2 3 4 4]; output=4 Example 2: input=[7...

5 years ago

Solved


Area of a circle
Given the radius x, y would be the area of a circle. Pi = 3.1416

5 years ago

Solved


Calculate the area of a circle
Given a circle of diameter x calculate its area

5 years ago

Solved


Area of a Square
Given the length x of the side of a regular square, find the area of the square, A.

5 years ago

Solved


Sum all integers from 1 to 2^x
Given a number x, your function must return the summation of all integers from 1 to 2^x.

5 years ago

Solved


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

5 years ago

Solved


Roll the Dice!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...

5 years ago

Solved


find the maximum element of the matrix
for e.g x = [1 2; 3 4] y = 4

5 years ago

Solved


Find max
Find the maximum value of a given vector or matrix.

5 years ago

Load more