convforce

Convert from force units to desired force units

Syntax

convertedValues = convforce(valuesToConvert, inputForceUnits, outputForceUnits)

Description

convertedValues = convforce(valuesToConvert, inputForceUnits, outputForceUnits) computes the conversion factor from specified input force units to specified output force 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 inputForceUnits to outputForceUnits.

inputForceUnits

Specified input force units, as strings. Supported unit strings are:

'lbf'Pound force
'N'Newton

outputForceUnits

Specified output force units, as strings. Supported unit strings are:

'lbf'Pound force
'N'Newton

Output Arguments

convertedValues

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

Examples

Convert three forces from pound force to newtons:

a = convforce([120 1 5],'lbf','N')

a =

  533.7866    4.4482   22.2411
Was this topic helpful?