On Fri, Jul 8, 2011 at 16:10, CdeMills <

[hidden email]> wrote:

> I wanted to look it the distance was not below some threshold. The call

> unique([1 1+eps])

> returns a set with two values, which doesn't make much sense in my case:

> such tiny difference may result from pure numerical error, and not from

> "real" data separation.

I see, then you can modify unique.m to suit your needs?

I suppose you just need to change

match = (y(1:n-1) == y(2:n));

into

match = (abs(y(1:n-1) - y(2:n))<=tolerance);

to find the differences within a given tolerance

_______________________________________________

Help-octave mailing list

[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave