## detrend-3.m
##
## Author: David Billinghurst (David.Billinghurst@riotinto.com.au)
##         Comalco Research and Technology
##         02 May 2000
N=32;
t = (0:1:N-1)/N;
x = [t;4*t-3]';
y = detrend(x);
all (all (abs (y) < 20*eps))
