[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #42764] Octave's squareform returns column vec
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #42764] Octave's squareform returns column vector, Matlab returns row vector |
Date: |
Sun, 13 Jul 2014 16:42:58 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/537.75.14 |
URL:
<http://savannah.gnu.org/bugs/?42764>
Summary: Octave's squareform returns column vector, Matlab
returns row vector
Project: GNU Octave
Submitted by: None
Submitted on: Sun 13 Jul 2014 04:42:57 PM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name: nikolaas n. oosterhof
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 3.8.1
Operating System: GNU/Linux
_______________________________________________________
Details:
the squareform function (in the octaveforge statistics package) shows
different behaviour in Matlab and Octave when using this function in the
'tovector' direction.
In octave (3.8.1 on linux, 3.8.0 on OSX):
>> squareform(1-eye(3),'tovector')
ans =
1
1
1
In matlab (R2012b on linux, R2013a on OSX):
>> squareform(1-eye(3),'tovector')
ans =
1 1 1
I expected the results to be the same for Matlab and Octave.
I'm not sure to what extent this really is a bug in the sense that is shows
behaviour inconsistent with the documentation; neither Matlab's nor Octave's
help say explicitly that the output is a row vector. The example given in the
Matlab help does however show that the output in Matlab is a row vector.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?42764>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #42764] Octave's squareform returns column vector, Matlab returns row vector,
anonymous <=