The depreciation amount is calculated by the following formula: D = P_i(1 - i)^Y
ID: 3836797 • Letter: T
Question
The depreciation amount is calculated by the following formula: D = P_i(1 - i)^Y - 1 Where: D = Depreciation amount P = Original Price i = Depreciation rate Y = Year of depreciation An excel file DepamtAB.xsIx needs to be placed in your MATLAB directory and using appropriate MATLAB statements, read the required data from the file. Using the above formula calculate the depreciation amount for each car model and plot this data in the form of a bar graph. i. Develop a pseudo code to solve the above problem. ii. Write the appropriate MATLAB statements for each step. iii. Test your solution by writing a MATLAB function on your computer and submit a print copy/email attachment of your code.Explanation / Answer
clc
load (p.mat);
load(I.mat);
load(y.mat);
a=p*I
c=y-1;
b=(1-i)^c
Dep=a*b;
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.