Jörg Buchholz wrote:
> On 05.02.2016 19:46, Karl Ratzsch wrote:
>> Am 04.02.2016 um 20:42 schrieb Jörg Buchholz:
>>>
>>> is there a way to use the stats command for a row?
Not that I know of.
>> It should be possible with "stats matrix", if you limit the yrange
>> in the right way?
I don't think you can use xrange or yrange to limit the indices
in a matrix. But I could be wrong on this point.
> Next problem with "stats matrix" is "mean".
>
> "B 1 - 5" mean in "stats matrix" is 1.5 (6/4). In "stats using" the mean
> is 3.0 (6/2). That is what I wont to have. So for me there a two
> problems and no solution.
>
> Is it intentional that "stats matrix" and "stats using" calculate the
> mean in two different ways?
Yes.
"stats using N" will only look at column N
"stats matrix" will look at all entries in the matrix
Note that normally in the latter case you want "stats matrix using 3",
since that is what will get you the value of the element matrix[i][j].
In the absence of an explicit using specification it probably
defaults to the equivalent of "matrix using 1", which would give
you the x coordinate of each matrix entry rather than its value.
Ethan