Solved


Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

9 days ago

Solved


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

9 days ago

Solved


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

9 days ago

Solved


Inner product of two vectors
Find the inner product of two vectors.

9 days ago

Solved


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

9 days ago

Solved


Create a cell array out of a struct
Create a cell array out of a (single) struct with the fieldname in the first column and the value in the second column: in: ...

11 days ago

Solved


Area of an Isoceles Triangle
An isosceles triangle has equal sides of length x and a base of length y. Find the area, A, of the triangle. <<https://imgur...

14 days ago

Solved


surrounded matrix
With a given matrix A (size m x n) create a matrix B (size m+2 x n+2) so that the matrix A is surrounded by ones: A = [1 2 ...

14 days ago

Solved


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

14 days ago

Solved


Approximation of Pi
Pi (divided by 4) can be approximated by the following infinite series: pi/4 = 1 - 1/3 + 1/5 - 1/7 + ... For a given number of...

15 days ago

Solved


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

15 days ago

Solved


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

15 days ago

Solved


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

15 days ago

Solved


Given a square and a circle, please decide whether the square covers more area.
You know the side of a square and the diameter of a circle, please decide whether the square covers more area.

15 days ago

Solved


radius of a spherical planet
You just measured its surface area, that is the input.

16 days ago

Solved


Pi Estimate 1
Estimate Pi as described in the following link: <http://www.people.virginia.edu/~teh1m/cody/Pi_estimation1.pdf>

16 days ago

Solved


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

17 days ago

Solved


Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

23 days ago

Solved


Roll the Dice!
Description Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. Example [x1,x2] = rollDice(...

4 months ago

Solved


Total energy

4 months ago

Solved


Potential energy calculation

4 months ago

Solved


Kinetic energy calculation

4 months ago

Solved


Laws of motion 1

4 months ago

Solved


Laws of motion 2

4 months ago

Solved


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

4 months ago

Solved


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

4 months ago

Solved


Find the Oldest Person in a Room
Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

4 months ago

Solved


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

4 months ago

Solved


Calculate Amount of Cake Frosting
Given two input variables r and h, which stand for the radius and height of a cake, calculate the surface area of the cake you n...

4 months ago

Solved


Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

4 months ago

Load more