convvel - Convert from velocity units to desired velocity units

Syntax

a = convvel(v, ui, uo)

Description

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

'ft/s'Feet per second
'm/s'Meters per second
'km/s'Kilometers per second
'in/s'Inches per second
'km/h'Kilometers per hour
'mph'Miles per hour
'kts'Knots
'ft/min'Feet per minute

Examples

Convert three velocities from feet per minute to meters per second:

a = convvel([30 100 250],'ft/min','m/s')

a =

    0.1524    0.5080    1.2700

See Also

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

  


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