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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started