Documentation Center

  • Trial Software
  • Product Updates

convangvel

Convert from angular velocity units to desired angular velocity units

Syntax

convertedValues = convangvel(valuesToConvert, inputAngularVelocityUnits, outputAngularVelocityUnits)

Description

convertedValues = convangvel(valuesToConvert, inputAngularVelocityUnits, outputAngularVelocityUnits) computes the conversion factor from specified input angular velocity units to specified output angular 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 inputAngularVelocityUnits to outputAngularVelocityUnits.

inputAngularVelocityUnits

Specified input angular velocity units, as strings. Supported unit strings are:

'deg/s'Degrees per second
'rad/s'Radians per second
'rpm'Revolutions per minute

outputAngularVelocityUnits

Specified output angular velocity units, as strings. Supported unit strings are:

'deg/s'Degrees per second
'rad/s'Radians per second
'rpm'Revolutions per minute

Output Arguments

convertedValues

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

Examples

Convert three angular velocities from degrees per second to radians per second:

a = convangvel([0.3 0.1 0.5],'deg/s','rad/s')

a =

    0.0052    0.0017    0.0087

See Also

| | | | | | | | |

Was this topic helpful?