解決済み

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ヶ月 前

解決済み

Dealfun (1.0)

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

2ヶ月 前

解決済み

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

3ヶ月 前

解決済み

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

3ヶ月 前

解決済み

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

3ヶ月 前

解決済み

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

3ヶ月 前

解決済み

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

3ヶ月 前

解決済み

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

3ヶ月 前

解決済み

Compute circular convolution

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

3ヶ月 前

解決済み

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

3ヶ月 前

解決済み

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

3ヶ月 前

解決済み

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

3ヶ月 前

解決済み

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

3ヶ月 前

解決済み

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

3ヶ月 前

解決済み

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

3ヶ月 前

解決済み

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

3ヶ月 前

解決済み

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

3ヶ月 前

解決済み

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ヶ月 前

解決済み

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ヶ月 前

解決済み

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ヶ月 前

解決済み

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ヶ月 前

解決済み

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ヶ月 前

解決済み

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ヶ月 前

解決済み

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ヶ月 前

解決済み

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ヶ月 前

解決済み

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ヶ月 前

解決済み

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ヶ月 前

解決済み

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ヶ月 前

解決済み

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ヶ月 前