Main Content
Simulink.SimulationData.Unit
Container for units for simulation data
Description
Simulink.SimulationData.Unit
objects store unit information for
signals.
Creation
For signals with specified units, the software creates
Simulink.SimulationData.Unit
objects creates when you:
Log data in
Dataset
format.Log data using a To Workspace block or To File block in
Timeseries
format.
The Simulink.SimulationData.Unit
object is stored in the
Units
property of the timeseries
,
Simulink.SimulationData.Signal
, or similar object used to store logging
information. For example, to access the stored unit information for a Signal
object named mySig
, use dot notation.
mySig.Values.DataInfo.Units
ans = Unit with properties: Name: 'm'
Description
Input Arguments
Properties
Object Functions
setName | Specify name of logging data units |
Examples
Version History
Introduced in R2016a