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

4 mesi 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 y...

4 mesi ago

Solved

Laws of motion 1

4 mesi ago

Solved

Laws of motion 2

4 mesi ago

Solved

Total energy

4 mesi ago

Solved

Potential energy calculation

4 mesi ago

Solved

Kinetic energy calculation

4 mesi ago

Solved

Laws of motion 3

4 mesi ago

Solved

Laws of motion 4

4 mesi ago

Solved

Laws of motion 5

4 mesi ago

Solved

Laws of motion 6

4 mesi ago

Solved

Divisible by 2
This is the first problem in a set of "divisible by x" problems. You will be provided a number as a string and the function you ...

4 mesi ago

Solved

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

4 mesi ago

Solved

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

4 mesi ago

Solved

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 mesi ago

Solved

Find the Pattern 2

4 mesi ago

Solved

Find the Pattern 1

4 mesi ago

Solved

Draw a '4' in a zero matrix!

4 mesi ago

Solved

Draw a '6' in a zero matrix!

4 mesi ago

Solved

Draw a '9' in a zero matrix!

4 mesi ago

Solved

Draw a '7' in a zero matrix!

4 mesi ago

Solved

Draw a '8' in a zero matrix!

4 mesi ago

Solved

Draw a '3' in a zero matrix!

4 mesi ago

Solved

Draw a '2' in a zero matrix!

4 mesi ago

Solved

Draw a '5' in a zero matrix!

4 mesi ago

Solved

Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

4 mesi ago

Solved

Replicate elements in vectors
Replicate each element of a row vector (with NaN) a constant number of times. Examples n=2, A=[1 2 3] -> [1 1 2 2 3 3] ...

4 mesi ago

Solved

Generate N equally spaced intervals between -L and L
Given N and L, return a list of numbers (in ascending order) that divides the interval [-L L] into N equal-length segments. F...

4 mesi ago