max (matrix, DIM) does not behave as advertised
Francesco Potortì
Potorti at isti.cnr.it
Tue Nov 11 11:18:06 CST 2008
The help string says:
-- Mapping Function: max (X, Y, DIM)
For a matrix
argument, return the maximum value from each column, as a row
vector, or over the dimension DIM if defined.
but:
octave3.1> max(ones(2),2)
ans =
2 2
2 2
moreover:
octave3.1> max(ones(2),ones(2),2)
ans =
1 1
1 1
while it should probably give an error.
--
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/
More information about the Bug-octave
mailing list