help-octave
[Top][All Lists]
Advanced

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

Re: result of prod(zero(0,3))


From: Donald J Bindner
Subject: Re: result of prod(zero(0,3))
Date: Fri, 29 Sep 2006 22:04:00 -0500
User-agent: Mutt/1.5.9i

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.

Don

-- 
Don Bindner <address@hidden>


reply via email to

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