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'
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
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
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