view test/octave.test/signal/detrend-3.m @ 4960:ce01dbd7e026 ss-2-1-58

[project @ 2004-09-02 03:47:49 by jwe]
author jwe
date Thu, 02 Sep 2004 03:47:49 +0000
parents 1e7f4405e037
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))