bugGNU Octave - Bugs: bug #43735, function interp1 behaves...

 
 

bug #43735: function interp1 behaves incorrectly

Submitted by:  None
Submitted on:  Mon 01 Dec 2014 11:28:18 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Regression
Status: FixedAssigned to: None
Originator Name: Originator Email: -unavailable-
Open/Closed: ClosedRelease: 3.8.2
Operating 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 05 Dec 2014 07:08:51 PM UTC, comment #5:

I applied Nir's patch to the stable branch here (http://hg.savannah.gnu.org/hgweb/octave/rev/ef649fe230f5). The fix will be part of any 3.8.3 bug fix release, but it is more likely that the next release will be 4.0 which will include it. For an immediate fix the reporter can use the interp1.m file attached to this report.

Rik <rik5>
Project Administrator
Tue 02 Dec 2014 04:49:54 PM UTC, comment #4:

The small attached patch fixes it. I also added these as tests.

(file #32584, file #32585)

Nir Krakauer <nir_krakauer>
Tue 02 Dec 2014 03:26:47 PM UTC, comment #3:

Thanks for testing. Marking this issue as confirmed.

Rik <rik5>
Project Administrator
Tue 02 Dec 2014 06:29:40 AM UTC, comment #2:

Hi,

Using MATLAB R2010a:

Avinoam

Avinoam Kalma <avinoam>
Project Member
Tue 02 Dec 2014 03:45:02 AM UTC, comment #1:

The result does look odd. Could someone run the example code in Matlab and report the results?

Rik <rik5>
Project Administrator
Mon 01 Dec 2014 11:28:18 PM UTC, original submission:

When using octave version 3.8.2 interp1 results gives following results:

Expected behaviour should be (in my opinion and as with version 3.4.3 and also 3.6.*)

I think that the bug is somewhere in file interp1.m:336. As yi is reshaped in each method and not in the end of interp1 as previously yi(outliers, :) = extrap will mess up yi because outliers and yi have different dimensions.

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #32584:  interp1.m added by nir_krakauer (29KiB - text/x-objcsrc)
file #32585:  interp1.patch added by nir_krakauer (908B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by nir_krakauer (Updated the item)
  • -unavailable- added by avinoam (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  •  

    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 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 05 Dec 2014 07:08:51 PM UTCrik5Item GroupIncorrect Result=>Regression
      StatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Tue 02 Dec 2014 04:49:54 PM UTCnir_krakauerAttached File-=>Added interp1.m, #32584
      Attached File-=>Added interp1.patch, #32585
    Tue 02 Dec 2014 03:26:47 PM UTCrik5StatusNeed Info=>Confirmed
    Tue 02 Dec 2014 03:45:02 AM UTCrik5StatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup1