octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #42234] horzcat ( …) works but […] doesn't


From: Lukas Reichlin
Subject: [Octave-bug-tracker] [bug #42234] horzcat ( …) works but […] doesn't
Date: Tue, 29 Apr 2014 13:31:33 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/6.1.3 Safari/537.75.14

URL:
  <http://savannah.gnu.org/bugs/?42234>

                 Summary: horzcat (…) works but […] doesn't
                 Project: GNU Octave
            Submitted by: paramaniac
            Submitted on: Tue 29 Apr 2014 01:31:32 PM GMT
                Category: Interpreter
                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: Mac OS

    _______________________________________________________

Details:

In the example below, horzcat is working, but [] isn't.


% requires the quaternion package
q = quaternion (eye (3))

% works as expected
a = horzcat (q, eye (3))

% fails because of Octave
% results a and b should be exactly the same
size (q)  % somehow Octave thinks q is 1x1 instead of 3x3 on the next line
b = [q, eye(3)]
% error: horizontal dimensions mismatch (1x1 vs 3x3)
% error: called from:
% error:   /Users/lukas/bug_octave.m at line 8, column 3

% fails correctly because of quaternion package
c = [q, eye(1)]
% error: horzcat: cat: dimension mismatch
% error: called from:
% error:   /Users/lukas/quaternion/inst/@quaternion/horzcat.m at line 27,
column 5






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?42234>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]