bugGNU Octave - Bugs: bug #43377, interp1: implement next and...

 
 

bug #43377: interp1: implement next and previous neighbor interpolation

Submitter:  Nir Krakauer <nir_krakauer>
Submitted:  Tue 07 Oct 2014 10:34:31 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 31 Oct 2014 12:52:04 AM UTC, comment #4: 

I added parentheses around the conditional being tested in an if block,


if strcmp (...)
   =>
if (strcmp (...))


since that's the Octave convention.  I also added a note about this to the NEWS file since it is cool that we have new features.

Closing report.

Rik <rik5>
Group administrator
Wed 29 Oct 2014 01:15:38 PM UTC, comment #3: 
Nir Krakauer <nir_krakauer>
Wed 29 Oct 2014 12:06:03 AM UTC, comment #2: 

@Nir: This seems like a good addition.  Could you make a changeset that applies against the current development version of interp1.m?  I downloaded the attached interp1.m but it seems to have been created against an older revision and there were a lot of differences.  Enough differences that I didn't want to try and wade through and figure out which were your changes to support "next" and "previous" and which were differences between Octave revisions.

Rik <rik5>
Group administrator
Sun 12 Oct 2014 03:48:41 PM UTC, comment #1: 

I propose modifying interp1 to include these options -- see the attached

(file #32259)

Nir Krakauer <nir_krakauer>
Tue 07 Oct 2014 10:34:31 PM UTC, original submission:  


The options "next" and "previous" are new in Matlab [1] and may be useful (similar to ceil/floor compared to round)


[1] http://www.mathworks.com/help/matlab/ref/interp1.html

Nir Krakauer <nir_krakauer>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #32336:  interp1.m added by nir_krakauer (28KiB - text/x-objcsrc)
file #32337:  interp1_diff.txt added by nir_krakauer (7KiB - text/plain)
file #32259:  interp1.m added by nir_krakauer (27KiB - text/x-objcsrc)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by nir_krakauer (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-10-31 rik5 StatusNone Fixed
        Open/ClosedOpen Closed
    2014-10-29 nir_krakauer Attached File- Added interp1.m, #32336
        Attached File- Added interp1_diff.txt, #32337
    2014-10-12 nir_krakauer Attached File- Added interp1.m, #32259

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code