Question: I dont understand what I am doing wrong? ***** CODY will put in its own array and variables so how do I make it so

I dont understand what I am doing wrong?
***** CODY will put in its own array and variables so how do I make it so that it works for any variable/array?
> Lab 2 Assignment 3 where A-payment Amount per period P= initial Principal (loan amount) . r-interest rate per period n total number of payments or periods Given one car price (P), one interest rate per period (), and multiple possible payment times (n), compute the monthly payment amount and store the result as variable A Example: input P 20000,- .035/12 (3.5% annual rate) n 136 48 60] (months) Output A [586.0416 447.1200 363.8349] Your Function C Reset MATLAB Documentation function A CarPay(P,r, n) = 3 %replace the line below with the code to compute the monthly payment 4 A P.*((r.*(1+rAsize(n))/((1+r).Asize(n))-1))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
