Find abrupt changes in data in the Live Editor
The Find Change Points task lets you interactively find abrupt changes in the mean, variance, or slope and intercept of data. The task automatically generates MATLAB® code for your live script.
Using this task, you can:
Specify the change point type and locate the change points from data in a workspace variable.
Adjust the number of detected change points.
Automatically visualize change point locations and the segments of data between them.
To add the Find Change Points task to a live script in the MATLAB Editor:
On the Live Editor tab, select Task > Find Change Points.
In a code block in the script, type a relevant keyword, such as
find. Select Find Change
Points from the suggested command completions.