bugGNU Octave - Bugs: bug #30342, 'interp1' doesn't handle missing x...

 
 

bug #30342: 'interp1' doesn't handle missing x values

Submitted by:  Søren Hauberg <hauberg>
Submitted on:  Sun 04 Jul 2010 10:45:55 AM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Feature Request
Status: FixedAssigned to: Ben Abbott <bpabbott>
Originator Name: Open/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Tue 27 Jul 2010 04:02:42 PM UTC, comment #3:

I've pushed this changeset and am closing the ticket.

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Mon 26 Jul 2010 11:41:06 AM UTC, comment #2:

I'm going to push this change and wait a few days before closing.

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Fri 16 Jul 2010 12:58:12 AM UTC, comment #1:

How about the attached?

(file #20989)

Ben Abbott <bpabbott>
Project MemberIn charge of this item.
Sun 04 Jul 2010 10:45:55 AM UTC, original submission:

Hi

It seems like Matlab allows you to do something like

y = 1:4;
xi = 2.5;
interp1 (y, xi);

while Octave complains that we don't get enough input arguments. I tried to see if I could change the current code to cope with this, but I failed. Attached is a different way of trying to interpret what the user wants, that seems to work quite well for me, but if somebody can come up with a smaller change then I guess that would be better.

Any thoughts on this?

Søren

Søren Hauberg <hauberg>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #20989:  changeset.patch added by bpabbott (2KiB - application/octet-stream - attempt by Ben)
file #20891:  interp1.patch added by hauberg (2KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bpabbott (Updated the item)
  • -unavailable- added by hauberg (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 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 27 Jul 2010 04:02:42 PM UTCbpabbottStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Mon 26 Jul 2010 11:41:06 AM UTCbpabbottStatusNone=>Ready For Test
      Assigned toNone=>bpabbott
    Fri 16 Jul 2010 12:58:12 AM UTCbpabbottAttached File-=>Added changeset.patch, #20989
    Sun 04 Jul 2010 10:45:55 AM UTChaubergAttached File-=>Added interp1.patch, #20891

    Back to the top


    Powered by Savane 3.1-cleanup1