numElements

Class: Simulink.SimulationData.Dataset
Package: Simulink.SimulationData

Get number of elements in data set

Syntax

length = numElements(dataset)

Description

length = numElements(dataset) gets the number of elements in the top-level dataset. To get the number of elements of a nested data set, use numElements with the nested data set.

Input Arguments

expand all

The data set from which to get the number of elements.

Output Arguments

expand all

Number of elements, returned as a double.

Examples

expand all

Get the number of elements in the signal logging data set for the ex_bus_logging.

length = topOut.numElements()
Introduced in R2011a