Risolto


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

12 mesi fa

Risolto


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

12 mesi fa

Risolto


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

12 mesi fa

Risolto


Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not to use d...

12 mesi fa

Risolto


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

12 mesi fa

Risolto


Draw a '0' in a one matrix!

12 mesi fa

Risolto


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

12 mesi fa

Risolto


Penny flipping - calculate winning probability (easy)
Two players are playing a fair penny flipping game. For each flip, the winner adds one penny from the loser's collection to his/...

12 mesi fa

Risolto


Find minimum and maximum elements of an array
For a given array find minimum and maximum elements of an array and store minimum value in first index of output and maximum in ...

12 mesi fa

Risolto


Distance Travelled by Vehicle

12 mesi fa

Risolto


Circle : Square

12 mesi fa

Risolto


Flipping a Matrix
Flipping matrix up and down. If a central row is exists, leave it, and flip remaining rows. Example Mat = magic(3) ...

12 mesi fa

Risolto


Flipping
Write code that can reverse the vector without using any sort of loop. Example Given the input vector A = [ 1 2 3 4 5...

12 mesi fa

Risolto


row removal
Consider a matrix and remove the first row of the matrix.

12 mesi fa

Risolto


Spherical Volume
Calculate the volume of a sphere.

12 mesi fa

Risolto


Volume and area of a sphere
Input(r) - radius Output([v,s]) - volume and area

12 mesi fa

Risolto


Perimeter of a semicircle
Given the diameter d, find the perimeter of a semicircle

12 mesi fa

Risolto


Calculate Engine Power
Calculate Engine Power (P) in kW given the values of Torque(M) in Nm and Engine Speed(n) in rpm

12 mesi fa

Risolto


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

12 mesi fa

Risolto


Find the largest value in the 3D matrix
Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...

12 mesi fa

Risolto


Volume Pillar
Calculate the volume of a pillar with radius l and heigth ar.

12 mesi fa

Risolto


Calculate area of sector
A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...

12 mesi fa

Risolto


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

12 mesi fa

Risolto


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

12 mesi fa

Risolto


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

12 mesi fa

Risolto


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

12 mesi fa

Risolto


Basic Mathematics 5
The total area of all four equal sections of the game field is N ft². Each section has a rectangle of dimensions X ft x Y ft re...

12 mesi fa

Risolto


Basic Mathematics 6
A High School is trying to build their robot to be able to reach the hanging object which is H inches from the ground. Their ro...

12 mesi fa

Risolto


Linear Motion 2
During testing in the desert, a remotely operated vehicle travels D kilometers over rough terrain. The testing takes place over...

12 mesi fa

Risolto


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

12 mesi fa

Carica altro