leftimage for poohprod.ru

Salvage Value - how to calculate it with Matlab

This program calculates the salvage value of an item at the end of a given year. It is necessary for you to provide the age of the item, its original price, and its depreciation rate.

The value is obtained by the following formula:

salvage value formula


S = salvage value
P = original price
i = nominal depreciation rate
Y = age in years

We show a video about how to use the formula. After the video, we show how to create a function to replicate the concept.

This is our simple Matlab code to calculate the above formula:

function sv = salvg_value(p, i, y)
i = i/100;
sv = p*(1-i)^y;

We create another script to test and drive the above m-file:

clc, clear, format compact, format bank

p = input('Enter original price: ');
i = input(
'Enter nominal depreciation rate: ');
y = input(
'Enter number of years: ');

sv = salvg_value(p, i, y)

Example 1:

What is the salvage value of Susan’s car if it is four years old, she bought it for $4933.76, and it depreciates 21% annualy?

Now, let’s try our code...

Enter original price: 4933.76
Enter nominal depreciation rate: 21
Enter number of years: 4

The result is:

sv = 1921.70

Example 2:

Mary’s DVD player is 2 years old. What is its value if it cost $155 originally and depreciates at a rate of 22%?

We launch our code...

Enter original price: 155
Enter nominal depreciation rate: 22
Enter number of years: 2

And the result is:

sv = 94.30

From 'Salvage Value' to home

From 'Salvage Value' to 'Finance Formulas'


Slvge Val Calculator

Calculate annuity

Calculate future value

Initial investments

Nominal interest rate

Effective interest rate

footer for salvage value page

Related pages

svd in matlabcreating a function in matlabhow to solve bisection methodpolynomial regression in matlabtrapezoidal method examplepolar plot in control systemalphabet ascii valuesdomain of a piecewise functionbinary to ascii conversion tableonline binomial distribution calculatorrandngcd of two numbers algorithmbell shaped curve generatorarea of irregular polygon calculatorarrow matlabrandn function in matlabmatlab line widthbinary octal convertereuclidean algorithm gcd examplewhat is the salvage value of a carmatrices multiplication examplessalvage value accountinggeneric programingfactorial matlabloan repayment equationtaylor series tutorialbilinear interpolation formulagraphing on matlabsolving 3 simultaneous equations using matricespermutations and combination calculatormatlab script tutorialsolids of revolution examplesexamples of simple interest and compound interesthow to estimate salvage valueonline pythagoras calculatorhelp with piecewise functionssine infinite seriesterminate matlab programprobability normal distribution calculatorcompound continuously interest calculatorsimultaneous equation examplethe heaviside functionmatlab histogram examplehow to program in matlab for beginnersascii value of lettershow to calculate the salvage valueroots of quadratic equation solverdefinition of periodic functionascii value of alphabetshow to change from binary to decimaldecimal to octal conversion examplesnum to hexhow to use while loop in matlabcalculating depreciation with salvage valueascii chart binarystep functions in matlabmatlab rem functionsine infinite seriesdefinite double integral calculatormatlab plot tutorialcolor code resistor calculator 5 bandgauss jordan method inversematlab programmeannuity functionpoly matlabdist matlabhow to find factorialslagrange interpolation examplemaclaurin expansion calculatorhow to plot vectors in matlab