This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

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. Supported units are:

'lbf'Pound force
'N'Newton

outputForceUnits

Specified output force units. Supported units 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

Introduced in R2006b