Documentation

setName

Class: Simulink.SimulationData.Unit
Package: Simulink.SimulationData

Specify name of logging data units

Syntax

unitObject = setName(unitObj,unitName)

Description

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

Input Arguments

expand all

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

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

Output Arguments

expand all

Name of logging data units, returned as a character vector.

Examples

expand all

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

  Units with properties:

    Name: 'inches'

Introduced in R2011a

Was this topic helpful?