[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #43418] interp2(X, Y, Z, iX, iZ, "spline") fai

From: Malte Hinrichs
Subject: [Octave-bug-tracker] [bug #43418] interp2(X, Y, Z, iX, iZ, "spline") fails when iX, iZ are matrices
Date: Wed, 26 Nov 2014 10:35:17 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/600.1.17 (KHTML, like Gecko) Version/7.1 Safari/537.85.10

Follow-up Comment #5, bug #43418 (project octave):

I found a workaround using interpn instead of interp2. I also discovered a bug
in interpn when using spline-interpolation, which I will report separately.

I have included an example file: test_interp2c.m

In short the workaround is:

iZ=zeros(size(iPHI)); % workaround for bug in interpn

iZ is initialized to the correct format first, because spline-interpolation
only works correctly with vector-input. With matrices it delivers incorrect


(file #32546)

Additional Item Attachment:

File name: test_interp2c.m                Size:1 KB


Reply to this item at:


  Nachricht gesendet von/durch Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]