Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Subtract offset or trend from time-domain signals contained in
`iddata`

objects

`detrend`

subtracts offsets or linear trends from
time-domain input-output data represented in `iddata`

objects.
`detrend`

either computes the trend data to subtract, or
subtracts the trend that you specify.

For a more general detrending function that does not require
`iddata`

objects, see `detrend`

.

`data_d = detrend(data)`

`data_d = detrend(data,Type)`

`[data_d,T_r] = detrend(___)`

`data_d = detrend(data,1,brkpt)`

computes and subtracts the piecewise-linear trends for data with segmented
trends, using the breakpoints that you define with
`data_d`

= detrend(`data`

,1,`brkpt`

)`brkpt`

.

The second argument, which corresponds to `Type`

, must be
`1`

.

With this syntax, you cannot retrieve the resulting piecewise-linear trend information as an output.