[Top][All Lists]

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

[Octave-bug-tracker] [bug #47330] mat2cell error message suffix doesn't

From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #47330] mat2cell error message suffix doesn't match number
Date: Thu, 03 Mar 2016 19:11:44 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 SeaMonkey/2.15


                 Summary: mat2cell error message suffix doesn't match number
                 Project: GNU Octave
            Submitted by: sebald
            Submitted on: Thu 03 Mar 2016 07:11:43 PM GMT
                Category: Octave Function
                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: dev
        Operating System: Any



The mat2cell mismatch error message prints out a "th" for any dimension such
as 1-th, 2-th, 3-th, 4-th.

The attached patch will fix this.  For example:

octave:2> mat2cell([1],2)
error: mat2cell: mismatch on 1st dimension (1 != 2)
octave:2> mat2cell([1],1,2)
error: mat2cell: mismatch on 2nd dimension (1 != 2)
octave:2> mat2cell([1],1,1,2)
error: mat2cell: mismatch on 3rd dimension (1 != 2)
octave:2> mat2cell([1],1,1,1,2)
error: mat2cell: mismatch on 4th dimension (1 != 2)
octave:2> mat2cell([1],1,1,1,1,1,1,1,1,1,2)
error: mat2cell: mismatch on 10th dimension (1 != 2)
octave:2> mat2cell([1],1,1,1,1,1,1,1,1,1,1,2)
error: mat2cell: mismatch on 11th dimension (1 != 2)
octave:2> mat2cell([1],1,1,1,1,1,1,1,1,1,1,1,2)
error: mat2cell: mismatch on 12th dimension (1 != 2)
octave:2> mat2cell([1],1,1,1,1,1,1,1,1,1,1,1,1,2)
error: mat2cell: mismatch on 13th dimension (1 != 2)
octave:2> mat2cell([1],1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2)
error: mat2cell: mismatch on 20th dimension (1 != 2)
octave:2> mat2cell([1],1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2)
error: mat2cell: mismatch on 21st dimension (1 != 2)
octave:2> mat2cell([1],1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2)
error: mat2cell: mismatch on 22nd dimension (1 != 2)
octave:2> mat2cell([1],1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2)
error: mat2cell: mismatch on 23rd dimension (1 != 2)
octave:2> mat2cell([1],1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2)
error: mat2cell: mismatch on 24th dimension (1 != 2)


File Attachments:

Date: Thu 03 Mar 2016 07:11:43 PM GMT  Name:
octave-mat2cell_suffix_mismatch-djs_2016mar03.patch  Size: 1kB   By: sebald



Reply to this item at:


  Message sent via/by Savannah

reply via email to

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