Main Content
setElement
Change Simulink.SimulationData.Dataset
object element stored at
specified index
Description
Examples
Input Arguments
Output Arguments
Alternative
You can use curly braces to streamline indexing syntax to change an element in a
Dataset
object instead of using setElement
. The index
must be a positive integer that is not greater than the number of elements in the variable.
For example, change the name of second element of the logsout
Dataset
object.
logsout{2}.Name = 'secondSignal'
Version History
Introduced in R2011a
See Also
Objects
Simulink.SimulationData.BlockPath
|Simulink.SimulationData.Signal
|Simulink.SimulationData.DataStoreMemory
|Simulink.SimulationData.Dataset
Functions
addElement
|concat
|find
|get
|getElementNames
|numElements
|removeElement