convdensity - Convert from density units to desired density units

Syntax

a = convdensity(v, ui, uo)

Description

a = convdensity(v, ui, uo) computes the conversion factor from specified input density units, ui, to specified output density 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/ft^3'Pound mass per feet cubed
'kg/m^3'Kilograms per meters cubed
'slug/ft^3'Slugs per feet cubed
'lbm/in^3'Pound mass per inch cubed

Examples

Convert three densities from pound mass per feet cubed to kilograms per meters cubed:

a = convdensity([0.3 0.1 0.5],'lbm/ft^3','kg/m^3')

a =

    4.8055    1.6018    8.0092

See Also

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

  


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