Solved

Net Present Value of a Stream of Cash Flows

Calculate the net present value of a future cash flow vector given; future cash flow vector (F) and interest rate (i) assume;...

2 meses ago

Solved

Dealfun (1.0)

*Short description.* Write a function _dealfun_: [y1,y2,...,yn]=dealfun(fhandle,x1,x2,...,xn) which evaluates the f...

2 meses ago

Solved

Kurchan 5x5 - Optimal Score

Related to Problems 1646 and 2650, but bigger. Technically, all you need to do for this Cody problem is input a 5x5 matrix conta...

2 meses ago

Solved

Kurchan 4x4 - Optimal score

Related to Problem 1646, but bigger. Technically, all you need to do for this Cody problem is input a 4x4 matrix containing the...

2 meses ago

Solved

2D Indexes

Given in input the maximum degree P, the algorithm furnishes a ordered list of two dimensional vectors [i,j] i,j>=0 such that i+...

2 meses ago

Solved

Linear Least Squares (L2 fitting problem )

Given a set of real measurements (x(i), y(i)) find a line sol(1)x + sol(2) (more specifically furnish the vector with...

2 meses ago

Solved

SchrÃ¶dinger dog

Everyone knows that dogs are less unpredictable than cats. But is that proven? Is that measurable at all? YES! NOW IT IS! ...

2 meses ago

Solved

Given a number between 1-365 (a day number in a non leap year) , find what day of what month it is.

For a given number between 1-365 (a day number in a non leap year), you should check which day of which month it is. for exampl...

2 meses ago

Solved

Compute circular convolution

In signal processing, we usually encounter the circular convolution case. Compute it here using the two input sequences (denoted...

2 meses ago

Solved

Miles to go before I sleep

Recently, my car's odometer passed 56789. Given an odometer reading, output how many miles need to be driven to get the next mi...

2 meses ago

Solved

twins or duplicate

You have to find if someone is present in 2 lists even if there's one orthographic fault in his name. Consider that an orthogr...

2 meses ago

Solved

Alias abs to asb

Create an alias of a built-in function name. Goal is to alias asb with abs for dyslexic typers. The test suite will be ...

2 meses ago

Solved

Order of things - 2

This problem is closely related to <http://www.mathworks.nl/matlabcentral/cody/problems/2189-order-of-things-1 Problem 2189, Ord...

2 meses ago

Solved

Order of things - 1

Let's assume you have a number of calculations to perform, that depend on each other. E.g. 'A' can be calculated, once the outco...

2 meses ago

Solved

Bleed non-zeros to the right using REGEXP, and that sort of cheatcodess...

This one is quite similar to <http://www.mathworks.nl/matlabcentral/cody/problems/1998-bleed-non-zeros-to-the-right>. But thi...

2 meses ago

Solved

Get the variable value from a string and generate sum

Get the variable value from a string. Example. x = 'A=10' y = 'B=20' Result = (x+y) Result = 30

2 meses ago

Solved

Initialize a varible with an integer value from a another variable which is assigned with a character value.

Initialize a varible with an integer value from a another variable which is assigned with a character value. ex: Test = 'c'...

2 meses ago

Solved

Create a "+" flag

Given two odd numbers, [m, n], return a matrix of size m x n which has all elements of the centre column and centre row set as 1...

3 meses ago

Solved

Plotting Practice

Plot cos(x) vs x as shown in the figure below. Include the appropriate title, x-label, and y-label. Note, it is case sensitive. ...

3 meses ago

Solved

Cross ("+") flag returns

Given two odd numbers, [m, n], return a matrix of size m x n which has all elements of the centre column and centre row set as 1...

3 meses ago

Solved

Create the flag of Ramumbia

The little known nation of Ramumbia has a very simple flag. It is made up of vertical stripes, Red, Green, Blue, that are equall...

3 meses ago

Solved

Scrabble Scores - 7

This problem is part of a set of problems that successively develop a more sophisticated Scrabble scoring routine. The point dis...

3 meses ago

Solved

Scrabble Scores - 6

This problem is part of a set of problems that successively develop a more sophisticated Scrabble scoring routine. The point dis...

3 meses ago

Solved

Scrabble Scores - 5

This problem is part of a set of problems that successively develop a more sophisticated Scrabble scoring routine. The point dis...

3 meses ago

Solved

Scrabble Scores - 4

This problem is part of a set of problems that successively develop a more sophisticated Scrabble scoring routine. The point dis...

3 meses ago

Solved

convert 2D array of ones and zeros to checkerboard array of [1,2] where the original array was ones and zero elsewhere

Given a 2D array of ones and zeros, generate an equivalent sized checkerboard array of ones and twos. The checkerboard pattern s...

3 meses ago

Solved

Rule of mixtures (composites) - either bound

The <http://en.wikipedia.org/wiki/Rule_of_mixtures rule of mixtures> is used in the mechanical design of composite structures to...

3 meses ago

Solved

Rule of mixtures (composites) - lower bound

The <http://en.wikipedia.org/wiki/Rule_of_mixtures rule of mixtures> is used in the mechanical design of composite structures to...

3 meses ago

Solved

Dick Van Dyck?

* Not the celebrity, <http://en.wikipedia.org/wiki/Dick_Van_Dyke Dick Van Dyke>, * this problem relates to balanced strings of...

3 meses ago