convangacc

Convert from angular acceleration units to desired angular acceleration units

Syntax

convertedValues = convangacc(valuesToConvert, inputAngularUnits, outputAngularUnits)

Description

convertedValues = convangacc(valuesToConvert, inputAngularUnits, outputAngularUnits) computes the conversion factor from specified input angular acceleration units to specified output angular acceleration 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 inputAngularUnits to outputAngularUnits.

inputAngularUnits

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

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

outputAngularUnits

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

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

Output Arguments

convertedValues

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

Examples

Convert three angular accelerations from degrees per second squared to radians per second squared:

a = convangacc([0.3 0.1 0.5],'deg/s^2','rad/s^2')

a =

    0.0052    0.0017    0.0087
Was this topic helpful?