Main Content

setName

Specify name of logging data units

Description

unitObject = setName(unitObj,unitName) sets the name for the Simulink.SimulationData.Unit object specified by unitObj to the name specified by unitName.

example

Examples

collapse all

inchesUnit = Simulink.SimulationData.Unit('in');
inchesUnit = setName(inchesUnit,'inches')
inchesUnit = 

  Units with properties:

    Name: 'inches'

Input Arguments

collapse all

Logging data unit object to name, specified as a Simulink.SimulationData.Unit object.

Name of logging data unit, specified as a character vector.

Version History

Introduced in R2011a