Remove polynomial trend from data in the Live Editor
The Remove Trends task lets you interactively remove a polynomial trend in data. The task automatically generates MATLAB® code for your live script.
Using this task, you can:
Choose the degree of the polynomial trend to remove from data in a workspace variable.
Dynamically arrange breakpoints to define piecewise segments of the data.
Specify continuity constraints.
Automatically visualize the computed trend and data with the trend removed.
To add the Remove Trends task to a live script in the MATLAB Editor:
On the Live Editor tab, select Task > Remove Trends.
In a code block in the script, type a relevant keyword, such as
remove
or detrend
. Select Remove
Trends from the suggested command completions.