Solved

Take a binary number as input,rearrange it in any manner such that its value is greater than the original one.output should be all the possible values in decimal.

a='001' output = [4,2]

1 month ago

Solved

Free passes for everyone!

_Simply return the name of the coolest numerical computation software ever_ *Extra reward* (get a _freepass_): Once a mont...

1 month ago

Solved

square a number twice with square root of 4/5

square a number twice with square root of 4/5

2 months ago

Solved

Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.

Submit your answer to this problem a multiple of 5 seconds after the hour. Your answer is irrelevant; the only thing that matte...

2 months ago

Solved

Generalised Hamming Number

Inspired by Project Euler n°204 and Problem 1308 by James A generalised Hamming number of type n, has no prime factor larger ...

3 months ago

Solved

Calculate BMI

Given a matrix |hw| with two columns, calculate BMI using these formulas: * 1 kilogram = 2.2 pounds * 1 inch = 2.54 centimet...

3 months ago

Solved

Find the Best Hotels

Given three input variables: * |hotels| - a list of hotel names * |ratings| - their ratings in a city * |cutoff| - the rat...

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

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

3 months ago

Solved

Verify Law of Large Numbers

If a large number of fair N-sided dice are rolled, the average of the rolls is likely to be close to the expected value of a sin...

3 months ago

Solved

Calculate a Damped Sinusoid

The equation of a damped sinusoid can be written as |y = A.ⅇ^(-λt).cos(2πft)| Given inputs λ ( |lambda...

3 months ago

Solved

Solve a System of Linear Equations

Given a constant input angle θ(theta) in radians, create the coefficient matrix(A) and constant vector(b) to solve the giv...

3 months ago

Solved

Find MPG of Lightest Cars

The file |cars.mat| contains a table named |cars| with variables |Model|, |MPG|, |Horsepower|, |Weight|, and |Acceleration| for ...

3 months ago

Solved

Polar Form Complex Number Entry

Write a function that takes the magnitude and angle(in degrees) of a complex number and returns a complex variable. Positive ang...

3 months ago

Solved

Bernoulli's Equation

Bernoulli's equation states that for an incompressible fluid the following summation is constant across the flow: v^2/2 + g*z + ...

3 months ago

Solved

Divisible by 12

Write a function to determine if a number is divisible by 12. Similar to the number six, this can be done by checking for divisi...

4 months ago

Solved

Divisible by 4

Pursuant to the <http://www.mathworks.com/matlabcentral/cody/problems/42404-divisible-by-2 first problem> in this series, this o...

4 months ago

Solved

Display negative numbers

Given array,x, display all the negative numbers and display output as y. Example x=[1 -2 3 -4] , output is y=[-2 -4].

4 months ago

Solved

Find the volume of cone

Find the volume of cone, when given radius(r) and height(h).

4 months ago