convtemp - Convert from temperature units to desired temperature units

Syntax

a = convtemp(v, ui, uo)

Description

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

'K'Kelvin
'F'Degrees Fahrenheit
'C'Degrees Celsius
'R'Degrees Rankine

Examples

Convert three temperatures from degrees Celsius to degrees Fahrenheit:

a = convtemp([0 100 15],'C','F')

a =

   32.0000  212.0000   59.0000

See Also

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

  


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