numElements - Get number of elements in Simulink.SimulationData.Dataset

        object - MATLAB ([original](https://in.mathworks.com/help/simulink/slref/simulink.simulationdata.dataset.numelements.html)) ([raw](?raw))

Get number of elements in Simulink.SimulationData.Dataset object

collapse all in page

Syntax

[length = numElements(dataset)](#d126e780132)

Description

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

example

Examples

collapse all

Get the number of elements in the signal loggingDataset 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

See Also

Objects

Functions

Topics