convertUnits
Convert units of Simulink.sdi.Signal object
Syntax
Description
convertUnits(
converts the stored units of the sig,units)Simulink.sdi.Signal object
sig to the units specified by units. When
you convert the stored units, the display units are updated. For a list of supported
units, see Allowed Units. You can use
the convertUnits function to convert the units of
Simulink.sdi.Signal objects that contain data of all built-in
and fixed-point types.
Note
Unit conversion does not support undo and may lead to precision loss.
Examples
Input Arguments
Version History
Introduced in R2018a