findMotif
Find the locations of top motif pairs from the matrix profile of a time series
Since R2025a
Description
Return Local Motif Locations
returns the starting locations locs
= findMotif(MP
,MPI
)locs
of the top motif pairs of a time
series from its matrix profile MP
and matrix profile indices in
MPI
as computed by the matrixProfile
command.
A motif pair is defined as a pair of subsequences that are most similar to each other
among all possible pairs of subsequences in the time series, based on the z-normalized
Euclidean distances between all the pair members. matrixProfile
determines these distances and findMotif
parses the results.
specifies additional parameters using one or more name-value arguments in addition to the
input arguments in previous syntaxes. For example, to limit the number of motif pairs that
locs
= findMotif(___,Name=Value)findMotif
returns to 5, set MaxNumMotifs
to
5
.
Plot Top Motifs
findMotif(___)
plots the location of the top motifs
on the matrix profile curve.
Input Arguments
Name-Value Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2025a