view test/octave.test/signal/detrend-3.m @ 4351:1e7f4405e037

[project @ 2003-02-21 19:42:01 by jwe]
author jwe
date Fri, 21 Feb 2003 19:42:01 +0000
parents 53acb394c728
children
line wrap: on
line source

## 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))