view test/octave.test/signal/detrend-2.m @ 3916:53acb394c728

[project @ 2002-04-30 03:18:59 by jwe]
author jwe
date Tue, 30 Apr 2002 03:18:59 +0000
parents
children
line wrap: on
line source

## detrend-2.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 .* t + 2;
y = detrend(x,2);
all (all (abs (y) < 30*eps))