convmass - Convert from mass units to desired mass units

Syntax

a = convmass(v, ui, uo)

Description

a = convmass(v, ui, uo) computes the conversion factor from specified input mass units, ui, to specified output mass units, uo, and applies the conversion factor to the input, v, to produce the output, a, in the desired units. v and a are floating-point arrays of size m-by-n. All of the values in v must have the same unit conversions from ui to uo. ui and uo are strings.

Supported unit strings are:

'lbm'Pound mass
'kg'Kilograms
'slugs'Slugs

Examples

Convert three masses from pound mass to kilograms:

a = convmass([3 1 5],'lbm','kg')

a =

    1.3608    0.4536    2.2680

See Also

convacc, convang, convangacc, convangvel, convdensity, convforce, convlength, convpres, convtemp, convvel

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS