[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #33301] rand() and orth() not fully MatLab com
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #33301] rand() and orth() not fully MatLab compatible |
Date: |
Thu, 12 May 2011 15:14:03 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729; .NET4.0E) |
URL:
<http://savannah.gnu.org/bugs/?33301>
Summary: rand() and orth() not fully MatLab compatible
Project: GNU Octave
Submitted by: None
Submitted on: Thu 12 May 2011 15:14:02 UTC
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Improvement/Optimization
Status: None
Assigned to: None
Originator Name:
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 3.2.4
Operating System: Microsoft Windows
_______________________________________________________
Details:
In Matlab, rand() with negative dimensions yields an empty matrix, while it
produces an error in Octave (both on 3.2 and 3.4 releases)
> rand(5,-2)
error: resize: Invalid resizing operation or ambiguous assignment to an
out-of-bounds array element.
Matlab result: Empty matrix 5-by-0
In Matlab, orth() with an empty matrix as argument yields an empty matrix. In
Octave, it produces an error.
> orth([])
error: A(I): Index exceeds matrix dimension.
error: called from:
error: C:\Program Files\Octave\share\octave\3.2.4\m\linear-algebra\orth.m at
line 57, column 6
Matlab result: empty matrix []
In a way, doing such things is useless of course, but toolboxes like PARAFAC
do it, consequently are broken when run on Octave and I had to debug quite a
while to fix it.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?33301>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #33301] rand() and orth() not fully MatLab compatible,
anonymous <=