Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Must be coded in MATLAB The remaining loan balance, B, of a fixed payment n years mortgage after x years is given by: B=(1+12r)12n1L[(1+12r)12n(1+12r)12x] where
Must be coded in MATLAB
The remaining loan balance, B, of a fixed payment n years mortgage after x years is given by: B=(1+12r)12n1L[(1+12r)12n(1+12r)12x] where L is the loan amount, and r is the annual interest rate. Calculate the balance of a 30 year, $100,000 mortgage, with annual interest rate of 6% (use 0.06 in the equation) after 0,5,10,15,20,25, and 30 years. Create a seven-element vector for x and use element-by-element operations. Display the results in a two-row table where the values of years, and balance are displayed in the first and second rows, respectively. Hint: Define a two-row table as Table = [xow 1; row 2]. Use the variable Table for the two-row table. Put "format bank" at the beginning of the Part 1 code 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