A résolu


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

presque 5 ans il y a

A résolu


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

presque 5 ans il y a

A résolu


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

presque 5 ans il y a

A résolu


divide by 5

presque 5 ans il y a

A résolu


Divide pi
Divide pi by x!

presque 5 ans il y a

A résolu


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

presque 5 ans il y a

A résolu


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

presque 5 ans il y a

A résolu


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

presque 5 ans il y a

A résolu


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]

presque 5 ans il y a

A résolu


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

presque 5 ans il y a

A résolu


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.

presque 5 ans il y a

A résolu


easy problem
Find the last element of the array

presque 5 ans il y a

A résolu


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

presque 5 ans il y a

A résolu


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

presque 5 ans il y a

A résolu


Find square of given number
Find Square of any number

presque 5 ans il y a

A résolu


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.

presque 5 ans il y a

A résolu


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

presque 5 ans il y a

A résolu


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

presque 5 ans il y a

A résolu


Matrix Max Finder
Output the maximum value in a matrix

presque 5 ans il y a

A résolu


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

presque 5 ans il y a

A résolu


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

presque 5 ans il y a

A résolu


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

presque 5 ans il y a

A résolu


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

presque 5 ans il y a

A résolu


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

presque 5 ans il y a

A résolu


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

presque 5 ans il y a

A résolu


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.

presque 5 ans il y a

A résolu


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.

presque 5 ans il y a

A résolu


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

presque 5 ans il y a

A résolu


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

presque 5 ans il y a

A résolu


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

presque 5 ans il y a

Charger plus