Member of the statistics class.
y = detrend(x)
y = detrend(x, option)
y = detrend(x, 'linear', break)
Removes a trend from input data.
| Name | Description | ||||
| x | Specifies the data from which you want to remove a trend. x is a vector or matrix. If x is a matrix, LabVIEW performs column-wise detrending. | ||||
| option | Specifies the trend to remove from x. option is a string that accepts the following values.
|
||||
| break | Specifies the breakpoints. break is a vector of indexes of x. If you specify the 'constant' trend, you cannot specify break. |
| Name | Description |
| y | Returns x with the trend removed. |
X = [3, 2, -1; 1, 6, 3; 2, -4, 0]
Y = detrend(X)