matrix threshold calculation

Ben Abbott bpabbott at mac.com
Tue Apr 28 07:45:00 CDT 2009


On Tuesday, April 28, 2009, at 08:34AM, "Michael Creel" <michael.creel at uab.es> wrote:
>
>Francesco Potorti`-2 wrote:
>> 
>>>I want to calculate the threshold value of a matrix. What i want is to
>>>find a value that is over the 95% percentages of the matrix values. Any
>>>idea how can i calculate this value via octave? 
>> 
>> A = rand (10, 10);
>> t = quantile (A(:), 0.95)
>> 
>> -- 
>> Francesco Potortì (ricercatore)        Voice: +39 050 315 3058 (op.2111)
>> ISTI - Area della ricerca CNR          Fax:   +39 050 315 2040
>> via G. Moruzzi 1, I-56124 Pisa         Email: Potorti at isti.cnr.it
>> (entrance 20, 1st floor, room C71)     Web:   http://fly.isti.cnr.it/
>
>A note, the quantile function is not in Octave 3.0.1, but it is in 3.1.55. I
>copied it (and __quantile__.m into my working copy of 3.0.1, and it works
>like a charm. Very nice how a menu of methods is available. Many thanks to
>the authors.
>Michael
>

The quatile.m and __quantile__.m functions are in 3.0.5, you may want to upgrade.

Ben




More information about the Help-octave mailing list