A2 = convert(A1,unit1,unit2)
converts a numeric array, A1, from unit1 to
unit2 by applying the appropriate scaling factor to the numeric
values. unit1 and unit2 must be
commensurate.
A2 = convert(A1,unit1,unit2,conversiontype)
lets you select whether to apply affine or linear conversion to thermal units. Affine
conversion is the default.
Array of numeric values, specified as a scalar, vector, or matrix. The array cannot
contain complex values and cannot be sparse.
Example: [1.5 2]
Data Types: double | single
Physical unit expression, specified as a scalar simscape.Unit
object.
Example: m
Physical unit expression, specified as a scalar simscape.Unit
object. unit1 and unit2 must be
commensurate.
Example: mm
Thermal units often require an affine conversion, that is, a conversion that
performs both multiplication and addition. For more information, see About Affine Units.
Specify the type of conversion:
'affine' — Perform unit conversion that uses both
multiplication and addition.
'linear' — Perform unit conversion by applying just the
linear term.
Array of numeric values, returned as a scalar, vector, or matrix in the same data
type as the input array A1, with numeric values scaled according to
the conversion factor between the two units, unit1 and
unit2.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Come ottenere le migliori prestazioni del sito
Per ottenere le migliori prestazioni del sito, seleziona il sito cinese (in cinese o in inglese). I siti MathWorks per gli altri paesi non sono ottimizzati per essere visitati dalla tua area geografica.