Main Content

getElementNames

Return names of all elements in Simulink.SimulationData.Dataset object

Description

example

elementList = getElementNames(dataset) returns a cell array containing the names of all elements in the Simulink.SimulationData.Dataset object dataset.

Examples

collapse all

Simulate the model sldemo_clutch, which models a rotating clutch system. The signal logging data is contained in the Dataset object named sldemo_clutch_output.

sim("sldemo_clutch")

Use the getElementNames function to return a list of elements in the Dataset object sldemo_clutch_output.

elList = getElementNames(sldemo_clutch_output)
elList = 10x1 cell
    {'Fn'          }
    {'Tin'         }
    {'LockedFlag'  }
    {'LockupFlag'  }
    {'UnlockFlag'  }
    {'Tfmaxk'      }
    {'Tfmaxs'      }
    {'ShaftSpeed'  }
    {'EngineSpeed' }
    {'VehicleSpeed'}

Input Arguments

collapse all

Dataset object from which to get the element names, specified as a Simulink.SimulationData.Dataset object.

Version History

Introduced in R2011a