bugGNU Octave - Bugs: bug #46577, interp2 with NaNs

 
 

bug #46577: interp2 with NaNs

Submitter:  Muhali <muhali>
Submitted:  Tue 01 Dec 2015 02:27:58 PM UTC
   
 
Category:  Octave Function Severity:  2 - Minor
Priority:  3 - Low Item Group:  Incorrect Result
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Mon 21 Dec 2015 11:59:16 AM UTC, comment #1: 

With the data provided you'll never get reconcilable results. This is not part of a Numeric Software to correct corrupted data with NaNs. To get your job done, ask where the NaNs come from, filter the data and properly use the routine interp2 according to the documentation.

I leave this bug report open, in case someone is willing to provide a check for NaNs and warn as Matlab does.

Kai Torben Ohlhus <siko1056>
Group Member
Tue 01 Dec 2015 02:27:58 PM UTC, original submission:  

The attached file 'foo.ot' contains NaNs in the variable Z. Now when I do


load foo.ot
interp2(X, Y, Z, XI, YI, METHOD)


I get no warnings in octave. In ML, I get a corresponding warning from interp2 and a result that is different from octave. It is unclear what to do to reconcile the results.

Muhali <muhali>

 

Attached Files

Attached Files
file #35607:  foo.ot added by muhali (4.2KiB - application/octet-stream)

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by siko1056 (Posted a comment)
  • -email is unavailable- added by muhali (Submitted the item)
  •  

    Votes

    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.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

    History

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-12-21 siko1056 CategoryNone Octave Function
        Severity3 - Normal 2 - Minor
        Priority5 - Normal 3 - Low
        Item GroupMatlab Compatibility Incorrect Result
        StatusNone Confirmed
        Operating SystemGNU/Linux Any
    2015-12-01 muhali Attached File- Added foo.ot, #35607

    Back to the top

    Powered by Savane 3.16-598c.
    Corresponding source code