Function Reference: @iddata/detrend

Function File: dat = detrend (dat)
Function File: dat = detrend (dat, ord)

Detrend outputs and inputs of dataset dat by removing the best fit of a polynomial of order ord. If ord is not specified, default value 0 is taken. This corresponds to removing a constant.

Source Code: @iddata/detrend