mlreportgen.utils.units Class
Namespace: mlreportgen.utils
Convert units
Description
The units class provides conversions between units.
Creation
Description
converts the specified value
= mlreportgen.utils.units.toPixels(lengthUnits
)lengthUnits
to pixels. The
lengthUnits
has two parts. The length is the number of units,
such as 5
or 8.3
. The unit is the unit type, such
as pixels
or inches
. You can also use a syntax
with separate length and units: value
=
mlreportgen.utils.units.toPixels(
.length
,units
)
converts the specified value
= mlreportgen.utils.units.toPoints(lengthUnits
)lengthUnits
to points. You can also use a
syntax with separate length and units: value
=
mlreportgen.utils.units.toPoints(
.length
,units
)
uses the optional Name-Value pair to override the screen pixels to inches. This syntax
can be used with any conversion syntax (that is, value
= mlreportgen.utils.units.toPoints...
(length
,units
,"DPI",convFactor
)toPixels
,
toPoints
, etc.)
converts the specified value
= mlreportgen.utils.units.toInches(lengthUnits
)lengthUnits
to inches. You can also use a
syntax with separate length and units: value
=
mlreportgen.utils.units.toInches(
.length
,units
)
converts the specified value
= mlreportgen.utils.units.toCentimeters(lengthUnits
)lengthUnits
to centimeters. You can also use a
syntax with separate length and units: value
=
mlreportgen.utils.units.toCentimeters(
.length
,units
)
converts the specified value
= mlreportgen.utils.units.toMillimeters(lengthUnits
)lengthUnits
to millimeters. You can also use a
syntax with separate length and units: value
=
mlreportgen.utils.units.toMillimeters(
.length
,units
)
converts the specified value
= mlreportgen.utils.units.toPicas(lengthUnits
)lengthUnits
to picas. You can also use a
syntax with separate length and units: value
=
mlreportgen.utils.units.toPicas(
.length
,units
)
Input Arguments
Examples
Version History
Introduced in R2018b