convpres - Convert from pressure units to desired pressure units

Syntax

a = convpres(v, ui, uo)

Description

a = convpres(v, ui, uo) computes the conversion factor from specified input pressure units, ui, to specified output pressure 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:

'psi'Pound force per square inch
'Pa'Pascal
'psf'Ppound force per square foot
'atm'Atmosphere

Examples

Convert two pressures from pound force per square inch to atmospheres:

a = convpres([14.696  35],'psi','atm')

a =

    1.0000    2.3816

See Also

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

  


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