Main Content

depsoyd

Sum of years' digits depreciation

Description

Sum = depsoyd(Cost,Salvage,Life) computes the depreciation for an asset using the sum of years' digits method.

example

Examples

collapse all

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

collapse all

initial value of the asset, specified as a scalar numeric.

Data Types: double

Salvage value of the asset, specified as a scalar numeric.

Data Types: double

Depreciable life of the asset in years, specified as a scalar numeric.

Data Types: double

Output Arguments

collapse all

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