find
Get element or collection of elements from
Simulink.SimulationData.Dataset object
Syntax
Description
[
matches elements using regular expressions as if the value of the property is passed to
the dsOut,idx]=find(dsIn,'-regexp',prop,val,...)regexp function as
regexp(element.prop,val)
find
function applies regular expression matching to the prop and
val arguments that appear after -regexp. If the
find function contains no -regexp argument, then
the function matches elements as if the value of the property is passed as
isequal(element.prop,val)
Examples
Input Arguments
Output Arguments
Alternatives
You can use curly braces to streamline the indexing syntax to access an element in a
Dataset object instead of using the find function. The
index must be a positive integer that is not greater than the number of elements in the
variable. For example, find the second element of the logsout dataset.
logsout{2}You can also use the get function to get an element or collection of
elements from a dataset.
Version History
Introduced in R2015b
See Also
Objects
Simulink.SimulationData.BlockPath|Simulink.SimulationData.Signal|Simulink.SimulationData.DataStoreMemory|Simulink.SimulationData.Dataset
Functions
addElement|concat|get|getElementNames|numElements|removeElement|setElement