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

 
 

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

Submitter:  Søren Hauberg <hauberg>
Submitted:  Sun 04 Jul 2010 10:45:55 AM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Feature Request
Status:  Fixed Assigned to:  bpabbott
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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

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

Ben Abbott <bpabbott>
Group Member
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>
Group Member
Fri 16 Jul 2010 12:58:12 AM UTC, comment #1: 

How about the attached?

(file #20989)

Ben Abbott <bpabbott>
Group Member
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 Files:
   
   
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
  • -email is unavailable- added by bpabbott (Updated the item)
  • -email is unavailable- added by hauberg (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-07-27 bpabbott StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2010-07-26 bpabbott StatusNone Ready For Test
        Assigned toNone bpabbott
    2010-07-16 bpabbott Attached File- Added changeset.patch, #20989
    2010-07-04 hauberg Attached File- Added interp1.patch, #20891

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code