Grocer Function

NAME

undrift - removes the drift or a linear time trend

CALLING SEQUENCE

[xun]=undrift(x)

PARAMETERS

Input

Output

DESCRIPTION

Function that removes the drift or a linear time trend

EXAMPLE

undrift([1:15]')

Provides ones(15,1)

AUTHOR

Eric Dubois 2004