Main Content

convangacc

Convert from angular acceleration units to specified angular acceleration units

Description

convertedValues = convangacc(valuesToConvert,inputAngularAccelUnits,outputAngularAccelUnits) computes the conversion factor from specified input angular acceleration units to specified output angular acceleration units. The function then applies the conversion factor to the input to produce the output in the specified units.

example

Examples

collapse all

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 = 1×3

    0.0052    0.0017    0.0087

Input Arguments

collapse all

Values to convert, specified as a floating-point array of size m-by-n. All values must have the same unit conversions from inputAngularAccelUnits to outputAngularAccelUnits.

Data Types: double

Input angular acceleration units, specified as one of these values.

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

Data Types: string

Output angular acceleration units, specified as one of these values.

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

Data Types: string

Output Arguments

collapse all

Converted values, returned as a floating-point array of size m-by-n.

Version History

Introduced in R2006b