[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #40893] princomp fails when called with only o
From: |
Thomas Weber |
Subject: |
[Octave-bug-tracker] [bug #40893] princomp fails when called with only one argument |
Date: |
Sat, 14 Dec 2013 01:06:57 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20131101 Firefox/24.0 Iceweasel/24.1.0 |
URL:
<http://savannah.gnu.org/bugs/?40893>
Summary: princomp fails when called with only one argument
Project: GNU Octave
Submitted by: tweber
Submitted on: Sat 14 Dec 2013 01:06:56 AM GMT
Category: Octave Forge Package
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.6.4
Operating System: GNU/Linux
_______________________________________________________
Details:
This is Debian bug 731992,
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=731992, reported by Kacper
Gutowski which I am forwarding here.
===============================
hyper% octave -q --no-init-file
warning: function /usr/share/octave/packages/statistics-1.2.2/fstat.m shadows
a core library function
octave:1> princomp(rand(10,2))
error: 'r' undefined near line 103 column 48
error: invalid limit value in colon expression
error: evaluating argument list element number 1
error: called from:
error: /usr/share/octave/packages/statistics-1.2.2/princomp.m at line 103,
column 9
octave:1>
As far as I can tell this is a trivial bug caused by the fact that 'r' is only
calculated if nargout > 1 and not needed otherwise so it can be fixed with the
simple patch attached.
===============================
Patch from submitter attached
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sat 14 Dec 2013 01:06:56 AM GMT Name: princomp.diff Size: 617B By:
tweber
<http://savannah.gnu.org/bugs/download.php?file_id=29915>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?40893>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #40893] princomp fails when called with only one argument,
Thomas Weber <=