Mercurial > hg > octave-terminal
changeset 10906:e48a45b9a265
don't use bicubic in interp2
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Mon, 23 Aug 2010 11:06:29 +0200 |
parents | 9ee5a0a1b93d |
children | 6105ed2db9d7 |
files | scripts/ChangeLog scripts/general/interp2.m |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2010-08-23 Jaroslav Hajek <highegg@gmail.com> + + * general/interp2.m: Don't use bicubic for consistency (can't handle + non-grid interpolation). + 2010-08-17 Rik <octave@nomad.inbox5.com> * general/randi.m: Add IMAX check for class "single" numbers.
--- a/scripts/general/interp2.m +++ b/scripts/general/interp2.m @@ -344,9 +344,10 @@ error ("interp2: XI and YI must be matrices of same size"); endif - ## FIXME bicubic/__splinen__ don't handle arbitrary XI, YI + ## FIXME bicubic/__splinen__ don't handle arbitrary XI, YI. if (strcmp (method, "cubic")) - if (isgriddata (XI) && isgriddata (YI')) + ## Please remove the dummy zero when bicubic is fixed. + if (0 && isgriddata (XI) && isgriddata (YI')) ZI = bicubic (X, Y, Z, XI (1, :), YI (:, 1), extrapval); elseif (isgriddata (X) && isgriddata (Y')) ## Allocate output