bugGNU Octave - Bugs: bug #31780, interp1 behaviour differs from...

 
 

bug #31780: interp1 behaviour differs from matlab when using 'spline' option

Submitted by:  Richard <crobar>
Submitted on:  Sat 04 Dec 2010 01:12:42 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 3 - LowItem Group: Feature Request
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 3.2.3Operating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

(Jump to the original submission Jump to the original submission)

Sat 16 Apr 2011 11:22:16 AM UTC, comment #6:

What is the status of this report, can it be closed now?

I for the default branch I get:

octave:5> x = [1, 2];
octave:6> y = [2, 3];
octave:7> xi = 1.3;
octave:8> interp1(x, y, xi, 'spline')
ans = 2.3000

Kai

Kai Habel <kahacjde>
Project Member
Mon 14 Feb 2011 01:13:11 PM UTC, comment #5:

I updated and pushed the changeset.

http://hg.savannah.gnu.org/hgweb/octave/rev/07e102029d2a

All tests pass.

Ben Abbott <bpabbott>
Project Member
Mon 14 Feb 2011 08:38:28 AM UTC, comment #4:

Dear all,

I cannot cleanly apply Ben's patch to 3.4.0, but, a part from that, the patch is fine and in my opinion it should be committed.

Marco

Marco Caliari <caliari>
Project Member
Mon 06 Dec 2010 09:21:58 PM UTC, comment #3:

I've attached the patch.

(file #22140)

Ben Abbott <bpabbott>
Project Member
Mon 06 Dec 2010 06:33:45 PM UTC, comment #2:

I'll add Ben to the CC list for this bug in case he still has the patch. The patch you mention hasn't been committed, or it may have been committed during the time Savannah was hacked, but its not in the Mercurial codebase today (12/6/10) with tip (11313:988d2bd6bacd).

Rik <rik5>
Project Administrator
Mon 06 Dec 2010 08:16:09 AM UTC, comment #1:

It should be fixed in a patch prepared by Ben. I'm not sure it was already committed.

Marco

Marco Caliari <caliari>
Project Member
Sat 04 Dec 2010 01:12:42 PM UTC, original submission:

When calling inter1 with the 'spline' method when supplying only two input points octave returns an error while matlab returns a linear interpolation, e.g.

in octave returns

but in matlab R2008a returns

Apologies if this has already been fixed.

Richard <crobar>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by kahacjde (Posted a comment)
  • -unavailable- added by bpabbott (Updated the item)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by rik5
  • -unavailable- added by caliari (Posted a comment)
  • -unavailable- added by crobar (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 9 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 16 Apr 2011 01:09:16 PM UTCbpabbottStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Mon 14 Feb 2011 01:13:11 PM UTCbpabbottStatusPatch Submitted=>Ready For Test
    Mon 06 Dec 2010 09:21:58 PM UTCbpabbottAttached File-=>Added changeset.patch, #22140
      StatusConfirmed=>Patch Submitted
    Mon 06 Dec 2010 06:34:19 PM UTCrik5Priority5 - Normal=>3 - Low
      StatusNone=>Confirmed
    Mon 06 Dec 2010 06:33:45 PM UTCrik5Item GroupIncorrect Result=>Feature Request
      Carbon-Copy-=>Added bpabbott

    Back to the top


    Powered by Savane 3.1-cleanup1