convacc - Convert from acceleration units to desired acceleration units

Syntax

a = convacc(v, ui, uo)

Description

a = convacc(v, ui, uo) computes the conversion factor from specified input acceleration units, ui, to specified output acceleration 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^2'Feet per second squared
'm/s^2'Meters per second squared
'km/s^2'Kilometers per second squared
'in/s^2'Inches per second squared
'km/h-s'Kilometers per hour per second
'mph/s'Miles per hour per second
'G''s'g-units

Examples

Convert three accelerations from feet per second squared to meters per second squared:

a = convacc([3 10 20],'ft/s^2','m/s^2')

a =

    0.9144    3.0480    6.0960

See Also

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

  


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