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

Add a New Comment Rich Markup

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>


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

Attach Files:

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


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by siko1056 (Posted a comment)
  • -email is unavailable- added by muhali (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 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.13-4b48.
    Corresponding source code