Help CenterHelp Center
Return names of all elements in dataset
element_list = getElementNames(dataset)
example
element_list = getElementNames(dataset) returns the names of all of the elements in the Simulink.SimulationData.Dataset object.
dataset
Simulink.SimulationData.Dataset
expand all
SimulationData.Dataset
The data set from which to the element name.
element_list
Data set, returned as a cell array of the character vectors containing names of all of the elements of the dataset.
Return the names of the elements for the topOut data set (the signal logging data).
topOut
open_system(docpath(fullfile(docroot,'toolbox','simulink',... 'examples','ex_bus_logging'))); open_system(docpath(fullfile(docroot,'toolbox','simulink',... 'examples','ex_mdlref_counter_bus'))); sim('ex_bus_logging') el_names = topOut.getElementNames
el_names = 'COUNTERBUS' 'OUTPUTBUS' 'INCREMENTBUS' 'inner_bus'
Introduced in R2011a
Simulink.SimulationData.BlockPath | Simulink.SimulationData.Signal | Simulink.SimulationData.DataStoreMemory | addElement | concat | find | get | numElements | setElement | Simulink.SimulationData.Dataset
Simulink.SimulationData.BlockPath
Simulink.SimulationData.Signal
Simulink.SimulationData.DataStoreMemory
addElement
concat
find
get
numElements
setElement
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office