Remove polynomial trend from data in the Live Editor
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.
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 asremove
ordetrend
. SelectRemove Trends从建议命令惠etions.