Solved

Restricted Subtraction v1

This problem is <https://www.mathworks.com/matlabcentral/cody/problems/45265-restricted-addition-v4 Restricted Addition v4> with...

1 month ago

Solved

Compression: Encode and Decode

This Challenge is to compress an array created by randi(2^32-1,1000) and then decompress your data file. The first call will ...

1 month ago

Solved

Spiraling out of control....

Imagine a square with corners at the origin and at (1,1). An interesting spiral can be created by tracing the path of a moving ...

1 month ago

Solved

How many ways to write

How many ways to write a positive integer x as the sum of n numbers , where , x>n and no n number is less than -2.

1 month ago

Solved

Portfolio diversification: choose your stocks !

we have the returns of 3 stocks for the last 4 years and we have to combine only 2 stocks that are less correlated. Example: ...

1 month ago

Solved

USC Fall 2012 ACM: Driving the Rover

This Challenge is to solve Question E, Driving the Rover, of the <http://contest.usc.edu/index.php/Fall12/Home USC ACM Fall 2012...

1 month ago

Solved

Persistence will not help you solve this problem.

Create a function without inputs that adds one to the output every time it is called. A different possibility of solving this ha...

1 month ago

Solved

Spell the number

Using the British short scale notation, write a function to return the correct spelling of a number passed as a numeric string i...

1 month ago

Solved

Apply Function to Each Field of a Structure Array: Part 1

The builtin <http://www.mathworks.com/help/matlab/ref/structfun.html?=structfun structfun> applies a function handle to each fie...

1 month ago