bugGNU Octave - Bugs: bug #31615, cat: dimension mismatch

 
 

bug #31615: cat: dimension mismatch

Submitter:  Marco Caliari <caliari>
Submitted:  Wed 10 Nov 2010 02:56:13 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.3.53 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 12 Nov 2010 06:22:11 PM UTC, comment #3: 

OK, I checked in the following additional change:

http://hg.savannah.gnu.org/hgweb/octave/rev/0090bb47d0b5

John W. Eaton <jwe>
Group administrator
Fri 12 Nov 2010 08:44:44 AM UTC, comment #2: 

Immediately after the fix (working for me, too) I discovered that also cat(3,[],[],1,2) does not work, while it works in ml, giving

ans(:,:,1) =
     1
ans(:,:,2) =
     2


Marco

Marco Caliari <caliari>
Group Member
Thu 11 Nov 2010 07:59:10 PM UTC, comment #1: 

Some testing showed that although

  cat (3, [], [], 1)

works in Matlab,

  cat (3, cat ([], []), 1)

does not.  So this looks like a special case.  I checked in the following change:

  http://hg.savannah.gnu.org/hgweb/octave/rev/80e01d79cf80

It seems to fix the reported problem for me, and also detects the error for the second case above, so I'm closing this report.

John W. Eaton <jwe>
Group administrator
Wed 10 Nov 2010 02:56:13 PM UTC, original submission:  

Dear all, I noticed that cat(3,[],[],1) gives

error: cat: dimension mismatch

while cat(1,[],[],1) and cat(2,[],[],1) are fine and any other permutation of {[],[],1} is fine for cat(3,...(and cat(3,[],[],1) is also fine in ml, giving 1).

Cheers,

Marco

Marco Caliari <caliari>
Group Member

 

(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

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by rik5 (Updated the item)
  • -email is unavailable- added by caliari (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-04-19 rik5 Dependencies- bugs #56167 is dependent
    2010-11-11 jwe StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2010-11-11 rik5 StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code