Skip to Main Content Skip to Search
Product Documentation

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

See Also

convacc | convang | convangacc | convangvel | convdensity | convlength | convmass | convpres | convtemp | convvel

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS