Solved

Still more miles to go before I sleep

It's time for more odometer fun. Last problem, my car's odometer hit 56789. It's coming up on 111111 now, which (barring a maj...

4 months ago

Solved

Clean the List of Names

Given a list of names in a cell array, remove any duplications that result from different capitalizations of the same string. So...

4 months ago

Solved

Ohm's Law

Well its Ohm's law... So V = IR! I will give two of the three values, such as V and I or I and R and you have to return th...

4 months ago

Solved

Ripping numbers apart!

So you have to "rip" a number apart into individual digits... The end output is a cell. That is if: x = 12345678 o...

4 months ago

Solved

Expand 10^n to Powers of 4

Given an integer n, return the coefficients c = [c_n,c_n-1,...,c_0] Such that 10^n = c_n*4^(n) + c_n-1*4^(n-1...

4 months ago

Solved

The number of trailing zero digit of a factorial

For given positive integer n, take factorial of that number. How many trailing zeros does it have? Example: factorial(11) = 3...

4 months ago

Solved

Angle between Two Vectors

The dot product relationship, a dot b = | a | | b | cos(theta), can be used to determine the acute angle between vector a and ve...

4 months ago

Solved

What is the nth step in Conway's Life?

Based on <Problem 52. What is the next step in Conway's Life?> Generalize your solution to Problem 52 - Give the state of the...

4 months ago

Solved

Derivative of polynomial

Compute the derivative of a given polynomial. The input is an <http://www.mathworks.com/help/matlab/math/representing-polynomial...

4 months ago

Solved

Create a Multiplication table matrix...

Create a product table in this format: P = [ 1 2 3 4 5; 2 4 6 8 10; 3 6 9 12 15; 4 8 12 1...

4 months ago

Solved

Create matrix of replicated elements

Given an input element x, and the dimensions, (m, n) return a matrix of size m x n filled with element x. Example: Input: ...

4 months ago

Solved

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

4 months ago

Solved

It's race time again! Write a function that is at least twice as fast as the test suite call of repmat().

Given an input element x, and the dimensions, (m, n) return a matrix of size m x n filled with element x. This must be done in l...

4 months ago

Solved

Determine the number of odd integers in a vector

Determine the number of unique odd integers in a vector. Examples: Input x = [2 5 8 3 7 1]; Output y = 4; Inp...

4 months ago

Solved

Skip by a multiple

Given an integer create an array of its multiples. Array must have a length of 15

4 months ago

Solved

Remove and Sort

Given a randomized array n, sort it and remove all odd integers. n=5 y = [2 4]

4 months ago

Solved

Areas

Given certain dimensions determine the area of that shape. If given only one value assume its the radius. Use round(x) to round ...

4 months ago

Solved

Kinetic Energy

Given the mass m and velocity v of an object, determine its <http://en.wikipedia.org/wiki/Kinetic_energy kinetic energy>.

4 months ago

Solved

Perimeters/Circumference

Given an array. Determine whether the perimeter is of a circle, triangle or square. Then calculate the perimeter.

4 months ago

Solved

Where is she?

Given the numbers 12, 3, 6, 9 Tell where the girl is located. That is: Look to your 3 o'clock = look right Example ...

4 months ago

Solved

02 - Vector Variables 3

Make the following variable: <<http://samle.dk/STTBDP/Assignment1_2c.png>> (all the numbers from 5 to -5 in increments of ...

4 months ago

Solved

03 - Matrix Variables 2

Make the following variable: <<http://samle.dk/STTBDP/Assignment1_3b.png>> A 9x9 matrix of zeros, but with the following v...

4 months ago

Solved

peta to nano (x-ray)

for certain x-ray radiation, given frequency in petahertz, give wavelength in nanometer, must be accurate +/- 25%

4 months ago

Solved

Write a function man that takes a row vector v and returns a matrix H as follows..

Write a function called man that takes a row vector v as an input and returns a matrix H whose first column consist of the eleme...

4 months ago