Documentation Center

  • Trial Software
  • Product Updates

convvel

Convert from velocity units to desired velocity units

Syntax

convertedValues = convvel(valuesToConvert, inputVelocityUnits, outputVelocityUnits)

Description

convertedValues = convvel(valuesToConvert, inputVelocityUnits, outputVelocityUnits) computes the conversion factor from specified input velocity units to specified output velocity units. It then applies the conversion factor to the input to produce the output in the desired units.

Input Arguments

valuesToConvert

Floating-point array of size m-by-n values that the function is to convert. All values must have the same unit conversions from inputVelocityUnits to outputVelocityUnits.

inputVelocityUnits

Specified input velocity units, as 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

outputVelocityUnits

Specified output velocity units, as 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

Output Arguments

convertedValues

Floating-point array of size m-by-n values that the function has converted.

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

| | | | | | | | |

Was this topic helpful?