Main Content

numElements

Get number of elements in Simulink.SimulationData.Dataset object

Description

length = numElements(dataset) returns the number of elements in the top-level Simulink.SimulationData.Dataset object dataset. To get the number of elements in a nested Dataset object, use numElements with the nested Dataset object.

example

Examples

collapse all

Get the number of elements in the signal logging Dataset object sldemo_clutch_output for the model sldemo_clutch.

length = numElements(sldemo_clutch_output)
length =

    10

Input Arguments

collapse all

Dataset object from which to get the number of elements, specified as a Simulink.SimulationData.Dataset object.

Version History

Introduced in R2011a