A résolu


Ohm’s Law - Calculate Resistance
Ohm’s Law states that resistance R can be calculated as:R=V/I​ where: V is the voltage (in volts) I is the current (in ampere...

8 mois il y a

A résolu


Is A the inverse of B?
Given a matrix A and a matrix B, is A the inverse of B? >>A=[2,4;3,5]; >>B=[-2.5,2;1.5,-1]; >>isInverse...

8 mois il y a

A résolu


Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

8 mois il y a

A résolu


Converts numbers into characters
Converts numbers into characters

8 mois il y a

A résolu


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

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

8 mois il y a

A résolu


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

8 mois il y a

A résolu


to the 2 all elements
to the 2 all elements

8 mois il y a

A résolu


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

8 mois il y a

A résolu


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

8 mois il y a

A résolu


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

8 mois il y a

A résolu


Draw a '0' in a one matrix!

8 mois il y a

A résolu


Total energy

8 mois il y a

A résolu


Potential energy calculation

8 mois il y a

A résolu


Kinetic energy calculation

8 mois il y a

A résolu


Laws of motion 1

8 mois il y a

A résolu


Laws of motion 2

8 mois il y a

A résolu


Laws of motion 3

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

8 mois il y a

A résolu


Laws of motion 5
Calculate the force is u are given mass and acceleration.

8 mois il y a

A résolu


Laws of motion 6

8 mois il y a

A résolu


Convert Hexavigesimal to Decimal
NASA (Ned’s Alien-Spying Agency) have made contact with a 13-fingered race from the planet Genai. Naturally, Ned’s shadowy opera...

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

8 mois il y a

A résolu


Add two numbers
Given a and b, return the sum a+b in c.

8 mois il y a

A résolu


Create a vector
Create a vector from 0 to n by intervals of 2.

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

8 mois 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]

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

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

8 mois il y a

A résolu


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

8 mois il y a