result of prod(zero(0,3))
Henry F. Mollet
mollet at pacbell.net
Sat Sep 30 22:05:00 CDT 2006
Same on 2.1.17.
[~] -bash-2.05b 501$ octave
GNU Octave, version 2.1.71 (powerpc-apple-darwin8.1.0).
ans = (0x3)
1 1 1
on 9/29/06 8:04 PM, Donald J Bindner at dbindner at limestone.truman.edu wrote:
> On Sat, Sep 30, 2006 at 02:38:31AM +0200, David Bateman wrote:
>> Just a question for someone who has matlab available. The result of
>> prod(zeros(0,3)) shocks me on that my feeling is it should be an empty
>> matrix of size (0x1), but the result is [1 1 1]!! Is this some crazy
>> matlab compatibility thing ? What does matlab give for the above?
> It gives [ 1 1 1 ] in fact.
More information about the Help-octave