[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(:)=interpn(R,PHI,Z,iR(:),iPHI(:),'spline');
iZ is initialized to the correct format first, because spline-interpolation
only works correctly with vector-input. With matrices it delivers incorrect
results:
iZ=interpn(R,PHI,Z,iR,iPHI,'spline');
(file #32546)
_______________________________________________________
Additional Item Attachment:
File name: test_interp2c.m Size:1 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?43418>
_______________________________________________
Nachricht gesendet von/durch Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #43418] interp2(X, Y, Z, iX, iZ, "spline") fails when iX, iZ are matrices, Rik, 2014/11/03
- [Octave-bug-tracker] [bug #43418] interp2(X, Y, Z, iX, iZ, "spline") fails when iX, iZ are matrices, Rik, 2014/11/04
- [Octave-bug-tracker] [bug #43418] interp2(X, Y, Z, iX, iZ, "spline") fails when iX, iZ are matrices, Malte Hinrichs, 2014/11/12
- [Octave-bug-tracker] [bug #43418] interp2(X, Y, Z, iX, iZ, "spline") fails when iX, iZ are matrices, Rik, 2014/11/12
- [Octave-bug-tracker] [bug #43418] interp2(X, Y, Z, iX, iZ, "spline") fails when iX, iZ are matrices,
Malte Hinrichs <=