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

 
 

bug #31615: cat: dimension mismatch

Submitted by:  Marco Caliari <caliari>
Submitted on:  Wed 10 Nov 2010 02:56:13 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 3.3.53Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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

Marco

Marco Caliari <caliari>
Project 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>
Project 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>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by rik5 (Updated the item)
  • -unavailable- added by caliari (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 11 Nov 2010 07:59:10 PM UTCjweStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Thu 11 Nov 2010 12:05:08 AM UTCrik5StatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1