[Changeset] Re: binornd incorrect for n=0

John W. Eaton jwe at bevo.che.wisc.edu
Mon Sep 8 09:50:31 CDT 2008


On  8-Sep-2008, David Bateman wrote:

| soren at hauberg.org wrote:
| > 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
| >
| >
| Ok then here is the suggested change worked up as a changeset, with the 
| matrix n/p case also fixed and with couple of tests for this issue 
| added. Changeset attributed to Mark.

I applied it.

Thanks,

jwe



More information about the Bug-octave mailing list