octave-maintainers
[Top][All Lists]
Advanced

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

Re: Deprecating statistics/base/values.m


From: bpabbott
Subject: Re: Deprecating statistics/base/values.m
Date: Mon, 09 Aug 2010 07:24:35 -0700 (PDT)

On 09 Aug, 2010,at 10:16 AM, Rik <address@hidden> wrote:

8/9/10

The script values.m returns the unique values of a vector, removing
repeats. This functionality is better handled by unique.m which not only
works on vectors, but also matrices and cell string arrays. In addition,
the unique.m script supports more options such as "rows".

Is there any objection to deprecating values.m?

--Rik
 
I took a quick look. There is a slight difference. Values always returns a Nx1 vector. Which is equivalent to ...

    values = @(x) unique (x)(:)

When x is a numeric vector.

Ben




reply via email to

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