bugGNU Octave - Bugs: bug #39370, contourc adds duplicates to the...

 
 

bug #39370: contourc adds duplicates to the start and end of the 1st level

Submitted by:  Ben Abbott <bpabbott>
Submitted on:  Sun 30 Jun 2013 09:30:19 AM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: NoneAssigned to: None
Originator Name: Ben AbbottOpen/Closed: Open
Release: devOperating System: Any

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Sat 06 Jul 2013 03:45:58 PM UTC, comment #3:

Ok. It is a bug in _contourc_.cc

The first level list has duplicates for the beginning and end.

x = [1 1 2 2];
y = [2 2 1 1];

is the same as;

x = [1 2];
y = [2 1];

Ben Abbott <bpabbott>
Project Member
Sat 06 Jul 2013 03:08:53 PM UTC, comment #2:

To be honest, I'm not sure if this is a bug or a documentation error. I'll try to find the time to dig deeper in the next few days.

Ben Abbott <bpabbott>
Project Member
Wed 03 Jul 2013 03:56:05 PM UTC, comment #1:

Is the documentation on the example incorrect or is the contourc code incorrect? It seems like Octave has been generating a 2x8 matrix for the example since at least version 3.2.4. Meanwhile, Matlab and the documentation suggest a 2x6 matrix is correct.

Maybe we should re-title the report.

Rik <rik5>
Project Administrator
Sun 30 Jun 2013 09:30:19 AM UTC, original submission:

"help contourc" displays the example below.

The sources produce this result.

Matlab doesn't match either result.

Ben Abbott <bpabbott>
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 mtmiller (Updated the item)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by bpabbott (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
    Tue 29 Oct 2013 02:44:04 AM UTCmtmillerCategoryDocumentation=>Octave Function
      Item GroupIncorrect Documentation=>Matlab Compatibility
    Sat 06 Jul 2013 03:45:58 PM UTCbpabbottSummarycontourc example is incorrect=>contourc adds duplicates to the start and end of the 1st level

    Back to the top


    Powered by Savane 3.1-cleanup