detect
Detect anomalies in time series using a trained time statistical process control (SPC) detector model
Since R2026a
Description
Add-On Required: This feature requires the Time Series Anomaly Detection for MATLAB add-on.
detects anomalies in the time series detectionResults = detect(detector,data)data using the trained time series
statistical process control anomaly detector detector.
detect calculates the anomaly scores, labels anomalies using the
threshold value in the property detector.Threshold, and returns these
labels and scores, as well as the window start indices, in
detectionResults. A label of 1 indicates an
anomaly and a label of 0 indicates normal behavior.
For an example of using detect as part of the detector development
workflow, see Train and Test Time Series Statistical Process Control Anomaly Detector.
sets additional options using one or more detectionResults = detect(___,Name=Value)Name=Value arguments. These
options include execution-related specifications and the plotting of a histogram.
Input Arguments
Name-Value Arguments
Output Arguments
Version History
Introduced in R2026a