bugGNU Octave - Bugs: bug #42234, horzcat (…) works but […]...

 
 

bug #42234: horzcat (…) works but […] doesn't

Submitter:  Lukas Reichlin <paramaniac>
Submitted:  Tue 29 Apr 2014 01:31:32 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.6.4 Operating System:  * Mac OS
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 25 Sep 2014 02:08:53 AM UTC, comment #2: 

Confirmed to be fixed in 3.8 here as well. The concatenation fails in version 3.6.4 but works in 3.8.0 and higher. Closing as fixed.

Mike Miller <mtmiller>
Group Member
Tue 29 Apr 2014 03:40:57 PM UTC, comment #1: 

Can you use a more recent version of Octave?  3.6.4 is no longer supported and there won't be any bug fixes to it.  The sample code works with 3.8.1 (the latest stable release) and quaternion 2.2.0.

Rik <rik5>
Group administrator
Tue 29 Apr 2014 01:31:32 PM UTC, original submission:  

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


Lukas Reichlin <paramaniac>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by paramaniac (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-09-25 mtmiller StatusWorks For Me Fixed
        Open/ClosedOpen Closed
    2014-04-29 rik5 StatusNone Works For Me

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code