[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: detrend() in Matlab and Octave
From: |
H W Borchers |
Subject: |
Re: detrend() in Matlab and Octave |
Date: |
Thu, 23 Dec 2010 07:15:06 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Ben Abbott <bpabbott <at> mac.com> writes:
>
> On Dec 22, 2010, at 6:27 PM, Sergei Steshenko <sergstesh <at> yahoo.com>
> wrote:
> >
> > The existing Octave 'detrend' should then remain with a different name -
> > because it has features the Matlab one doesn't have.
> >
> > Regards,
> > Sergei.
>
> No need. There isn't an inherent incompatibility for the differing features.
There is. A call like
x = (1:5).^2;
detrend(x, 2)
will return the result [0 0 0 0 0] in Octave and [2 -1 -2 -1 2] in Matlab
(with a warning).
> Ben
>