[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding peaks/max in a graph

From: David Bateman
Subject: Re: Finding peaks/max in a graph
Date: Mon, 5 Apr 2004 18:45:34 +0200
User-agent: Mutt/1.4.1i

According to Thomas Shores <address@hidden> (on 04/05/04):
> Hmmm.  Worked fine for me. And if you want a row/column independent
> version, see below.

Consider how the two versions treat

a = [1 0 0 0 1]';
n = length(a);

The first version finds a peak at 1 and 5 while the second doesn't. That being
said there is probably a way to get diff to do the same behaviour. It also
depends whether you trust peaks at the bounds of your data or not as well.


David Bateman                                address@hidden
Motorola CRM                                 +33 1 69 35 48 04 (Ph) 
Parc Les Algorithmes, Commune de St Aubin    +33 1 69 35 77 01 (Fax) 
91193 Gif-Sur-Yvette FRANCE

The information contained in this communication has been classified as: 

[x] General Business Information 
[ ] Motorola Internal Use Only 
[ ] Motorola Confidential Proprietary

Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]