Question: MATLAB MATLAB/COLUM MATRIX A fixed monthly investment plan is started. The initial capital in dollars is , the monthly interest rate is equal to and

MATLAB MATLAB/COLUM MATRIX A fixed monthly investment plan is started. The initial capital in dollars is , the monthly interest rate is equal to and the monthly deposit that must be provided is dollars. In the first month an amount of is invested, in the second month an amount of , in the third month an amount of . In the -th month the amount to invest is . The withdrawal can be made annually. With some calculations it can be proved that:

Create a function called CapitalM where the inputs are:

c0: initial capital r: monthly interest rate M: fixed monthly fee n: month number

The output MUST BE a column vector (matrix) that shows in its first component the amount , in its -th component the amount and in its last component the amount

FUNCTION:

function [c] = CapitalM(c0, r, M, n)

% Inputs: initial capital c0, monthly interest r;

% fixed M monthly fee; month n-th

% Output: c final capital to the n-th month ......

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!