binornd incorrect for n=0

soren at hauberg.org soren at hauberg.org
Mon Sep 8 03:09:37 CDT 2008


Quoting David Bateman <David.Bateman at motorola.com>:
> Could someone with the Matlab statistics toolbox check what
> "binornd(0,0,1)" gives under matlab? I suspect this bug report is right
> but would like to check what matlab returns before fully supporting its
> inclusion..

In Matlab 7.6.0.324 (R2008a):

>> binornd(0,0,1)

ans =

      0


Søren




More information about the Bug-octave mailing list