A résolu


Beginner's Problem - Squaring
Try out this test problem first. Given the variable x as your input, square it by two and put the result in y. Examples: ...

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


Find the Nth Root of a Given Number
Find the Nth root of a given number x. Examples x = 4096 n = 4 y = 8 x = 625 n = 5 y = 3.6239

plus d'un an 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.

plus d'un an il y a

A résolu


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


Matlab Basics - Absolute Value
Write a script that returns the absolute value of the elements in x e.g. x = [-1 -2 -3 -4] --> y = [1 2 3 4]

plus d'un an 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

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


Celsius to Fahrenheit converter
Convert Celsius to Fahrenheit degrees.

plus d'un an il y a

A résolu


Try 1.5.4: Celsius to Fahrenheit
Write a program to convert an input given in Celsius to Fahrenheit. Examples: Input celsiusValue = 100 Output fahrValu...

plus d'un an il y a

A résolu


Finding perimeter of a rectangle
A rectangle has a length of x centimeters and a width of w centimeters. Find the perimeter.

plus d'un an il y a

A résolu


Find out value of sine given by degree.
Find out value of sine given by degree. If theta=30, it's value must be 0.5.

plus d'un an il y a

A résolu


MATLAB Basic: rounding III
Do rounding towards minus infinity. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 8

plus d'un an il y a

A résolu


Matlab Basics - Rounding I
Write a script to round x DOWN to the next lowest integer: e.g. x = 2.3 --> x = 2 also: x = 2.7 --> x = 2

plus d'un an il y a

A résolu


Squaring Matrix
Square the following matrix using matlab % A = 1 2 3 4 5 6 7 8 So new matrix should display...

plus d'un an il y a

A résolu


Transpose
Write a MATLAB script in order to convert a random length row vector (v) into a column vector.

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


calculate the tangent of angle in radians
Calculate the tangent of angle in degrees

plus d'un an il y a

A résolu


factorial of a number x
Factorial of a number x

plus d'un an il y a

A résolu


Volume of a box
Given a box with a length a, width b, and height c. Solve the volume of the box.

plus d'un an il y a

A résolu


Square the input
Given a scalar or vector x, return the square of each element. Example x = [7 2] answer = [49 4]

plus d'un an il y a

A résolu


Convert radians to degrees
Given input in radians, output to degrees

plus d'un an il y a

A résolu


Simple equation: Annual salary
Given an hourly wage, compute an annual salary

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


Product of Array
Given an array of numbers. Get the product of the array.

plus d'un an il y a

A résolu


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

plus d'un an il y a

A résolu


Convert yards to feet
The goal of this script is to convert a value given in yards to feet.

plus d'un an il y a

A résolu


Double all elements in the array
Duplicate all elements in the array

plus d'un an il y a

Charger plus