share/octave/3.2.0/m/statistics/base/var.m

John W. Eaton jwe at octave.org
Mon Jun 22 10:40:21 CDT 2009


On 22-Jun-2009, Ali Azarbayejani wrote:

| --------
| Bug report for Octave 3.2.0 configured for i386-apple-darwin8.11.1
| 
| Description:
| -----------
| 
| var() called with any scalar or vector of size 1 fatal error...
| 
| error: `sz' undefined near line 61 column 21
| error: evaluating argument list element number 1
| error: evaluating argument list element number 1
| error: called from:
| error:   /Applications/Octave.app/Contents/Resources/share/octave/ 
| 3.2.0/m/statistics/base/var.m at line 61, column 12
| 
| 
| Repeat-By:
| ---------
| 
|    var(3);
|    var( [3] );

There is no difference between 3 and [3].  They are both scalar
objects in Octave.

| Fix:
| ---
| 
|    Simple fix.  Define 'sz' variable!

By "Fix", we mean a changeset that fixes the problem, not a guess of
what you think the fix might be.

I checked in the following change.

  http://hg.savannah.gnu.org/hgweb/octave/rev/56751dfc6ebd

Thanks,

jwe


More information about the Bug-octave mailing list