Gelöst


Swap between rows
The idea is to swap between second and second last row Ex = [1 2 3 4 5; 5 4 3 2 1; 1 2 3 4 5; 1 2 3 4 5; ...

3 Monate vor

Gelöst


Flip the diagonal values
Write a program that flip the elements of main diagonal , upper and lower diagonal values of a sqare matrix. For example if a ...

3 Monate vor

Gelöst


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

3 Monate vor

Gelöst


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

3 Monate vor

Gelöst


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

3 Monate vor

Gelöst


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

3 Monate vor

Gelöst


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.

3 Monate vor

Gelöst


Total energy

4 Monate vor

Gelöst


Potential energy calculation

4 Monate vor

Gelöst


Kinetic energy calculation

4 Monate vor

Gelöst


Laws of motion 1

4 Monate vor

Gelöst


Laws of motion 2

4 Monate vor

Gelöst


Laws of motion 3

4 Monate vor

Gelöst


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

4 Monate vor

Gelöst


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

4 Monate vor

Gelöst


Laws of motion 6

4 Monate vor

Gelöst


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

4 Monate vor

Gelöst


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

4 Monate vor