functionComponent
Description
functionComponent is a pipeline component that performs a custom
function. During the learn and run phases, the component executes the custom
function.
Creation
Syntax
Description
creates a pipeline component using the custom function component = functionComponent(fun)fun.
sets the number of input and output ports to component = functionComponent(fun,numInputs,numOutputs)numInputs and
numOutputs, respectively.
sets Properties using one or more
name-value arguments in addition to any of the input argument combinations in previous
syntaxes. For example, you can specify the input tags using the
component = functionComponent(___,Name=Value)InputTags name-value argument.
Input Arguments
Properties
Object Functions
learn | Initialize and evaluate pipeline or component |
run | Execute pipeline or component for inference after learning |
reset | Reset pipeline or component |
series | Connect components in series to create pipeline |
parallel | Connect components or pipelines in parallel to create pipeline |
view | View diagram of pipeline inputs, outputs, components, and connections |
Examples
Version History
Introduced in R2026a