Remove Trends
Remove polynomial trend from data in the Live Editor
Description
TheRemove Trendstask 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.
![](http://www.tatmou.com/help/releases/R2019b/matlab/ref/rmtrendslet.png)
Open the Task
To add theRemove Trendstask to a live script in the MATLAB Editor:
On theLive Editortab, selectTask > Remove Trends.
In a code block in the script, type a relevant keyword, such as
remove
ordetrend
. SelectRemove Trends从建议命令惠etions.