depsoyd
Sum of years' digits depreciation
Description
Examples
Compute the Depreciation for an Asset Using the Sum of Years' Digits Method
This example shows how to calculate the depreciation for an asset using the sum of years' digits method where the asset is $13,000 with a life of 10 years. The salvage value of the asset is $1000.
Sum = depsoyd(13000, 1000, 10)'
Sum = 10×1
103 ×
2.1818
1.9636
1.7455
1.5273
1.3091
1.0909
0.8727
0.6545
0.4364
0.2182
Input Arguments
Cost
— Initial value of the asset
numeric
initial value of the asset, specified as a scalar numeric.
Data Types: double
Salvage
— Salvage value of the asset
numeric
Salvage value of the asset, specified as a scalar numeric.
Data Types: double
Life
— Depreciable life of the asset in years
numeric
Depreciable life of the asset in years, specified as a scalar numeric.
Data Types: double
Output Arguments
Sum
— Depreciation values
vector
Depreciation values, returned as a 1
-by-Life
vector of depreciation values with each element corresponding to a year of the asset's
life.
Version History
Introduced before R2006a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)