A résolu


MATLAB Basic: rounding II
Do rounding nearest integer. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 9

environ 2 ans il y a

A résolu


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

environ 2 ans il y a

A résolu


Converts numbers into characters
Converts numbers into characters

environ 2 ans il y a

A résolu


Find the max element of the array
Find the max element of the array

environ 2 ans il y a

A résolu


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

environ 2 ans il y a

A résolu


calculate the length of matrix
input 1 array, calculate the length

environ 2 ans 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.

environ 2 ans il y a

A résolu


Force and Motion 2
Two robots are pulling on an object in opposite directions. One robot pulls with a force of F1 Newtons and the other with a forc...

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

environ 2 ans il y a

A résolu


Laws of motion 5

environ 2 ans il y a

A résolu


Laws of motion 4
Given the initial velocity 'u', final velocity 'v' and acceleration 'a', find the distance travelled.

environ 2 ans il y a

A résolu


Laws of motion 3

environ 2 ans il y a

A résolu


Total energy

environ 2 ans il y a

A résolu


Kinetic energy calculation

environ 2 ans il y a

A résolu


Laws of motion 2

environ 2 ans il y a

A résolu


Laws of motion 1

environ 2 ans il y a

A résolu


Solve a System of Linear Equations
Example: If a system of linear equations in x₁ and x₂ is: 2x₁ + x₂ = 2 x₁ - 4 x₂ = 3 Then the coefficient matrix (A) is: 2 ...

environ 2 ans il y a

A résolu


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

environ 2 ans il y a

A résolu


Force and Motion 3
Two robots push on a large object in the same direction. One robot pushes with a force of F1 Newtons and the other with a force...

environ 2 ans 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...

environ 2 ans il y a

A résolu


Potential energy calculation

environ 2 ans il y a

A résolu


An Ohm's Law Calculator
*BACKGROUND / MOTIVATION:* Many important observations in math and science can be described by short, but powerful, equations...

environ 2 ans il y a

A résolu


Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2 3 3 3 4...

environ 2 ans il y a

A résolu


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

environ 2 ans il y a

A résolu


Length of a short side
Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

plus de 2 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...

plus de 2 ans il y a

A résolu


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

plus de 2 ans il y a

A résolu


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

plus de 2 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.

plus de 2 ans il y a

A résolu


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

plus de 2 ans il y a

Charger plus