Question: This is a matlab question solving problems with loops. didnt get much information, just what i posted. Suppose that you start a new savings account

 This is a matlab question solving problems with loops. didnt get
This is a matlab question solving problems with loops.
didnt get much information, just what i posted.

Suppose that you start a new savings account with an initial deposit of 1,000 and that from then on you deposit 1,200 a month. The account collects 3% annual interest. The accumulated balance at the end of the kth month can be represented by the recursion: y(k) = y(k-1)+ry(k-1) +1200, k 2 and initialized at y(1) - 1000, with effective monthly rate of r = (3/100)/12 = 0.0025. Using a for-loop determine how many months it would take to reach a desired balance of 500,000. Repeat the previous part using a conventional while-loop, Repeat using a forever while-loop. Make a plot of the balance y() versus d. Plot the horizontal axis in months, and the vertical axis in thousands of pounds. Add the ending balance on the graph. Write a function, account, that uses method above, and given the initial balance ya, annual percentage rate R. monthly deposit I, and desired final balance Wear, it returns the vector of monthly balances y until the goal of ymes is reached. It must have usage: y account, R., Ymer). Note that the length N of the array ( ) is the required number of months to reach the savings goal, and y(N) is the ending balance, which should be just a bit higher than ymas

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 Databases Questions!