X = detrend(X)
X = detrend(X,Range)
X
[ tseries ] - Input time series.
Range
[ numeric | Inf
] - The date range on which the trend will be computed; Inf
means the entire range available will be used.
x
[ tseries ] - Output time series with a trend removed.See tseries/trend
for options available.