[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #65134] griddata: output size inconsistent for
From: |
Nicholas Jankowski |
Subject: |
[Octave-bug-tracker] [bug #65134] griddata: output size inconsistent for vector input interpolation points |
Date: |
Mon, 8 Jan 2024 18:13:07 -0500 (EST) |
Update of bug#65134 (group octave):
Item Group: Undocumented Matlab => Matlab Compatibility
Status: Confirmed => Patch Submitted
Planned Release: None => 10.1.0 (current default)
Summary: griddata col+row ordered query point inputs do not
expand to grid (undocumented matlab) => griddata: output size inconsistent
for vector input interpolation points
_______________________________________________________
Follow-up Comment #8:
attached is a patch that corrects the 2-D output orientation for vector
interpolation points. For same-orientation xi & yi, the output XI, YI, ZI now
have the same orientation. For row/column mixes of xi and yi (in either
combination), [xi,yi]=meshgrid(xi,yi) . BIST added to verify those changes.
patch attached. my build machine is being rebuilt so I haven't had a chance to
run it through the test suite yet to see if it breaks anything else. Marking
as Patch submitted. title updated slightly as there does seem to be an actual
compatibility issue with the output orientation separate from the original
meshgrid issue. Not sure that's severe enough to push to stable, but change
was simple enough that that could be done if warranted.
writing the BISTS, i did notice a more concerning issue with teh linear
interpolation. might make another report. see simple linear ramp:
>> abc=[1:10].*[1:10]'
abc =
1 2 3 4 5 6 7 8 9 10
2 4 6 8 10 12 14 16 18 20
3 6 9 12 15 18 21 24 27 30
4 8 12 16 20 24 28 32 36 40
5 10 15 20 25 30 35 40 45 50
6 12 18 24 30 36 42 48 54 60
7 14 21 28 35 42 49 56 63 70
8 16 24 32 40 48 56 64 72 80
9 18 27 36 45 54 63 72 81 90
10 20 30 40 50 60 70 80 90 100
##Matlab:
>> griddata(1:10,1:10,abc,[1 5 10], [1 5 10])
ans =
1 25 100
Octave:
>> griddata(1:10,1:10,abc,[1 5 10], [1 5 10])
ans =
2.0111 NaN 89.8889
(file #55544)
_______________________________________________________
Additional Item Attachment:
File name: griddata_vector_inputs_bug65134.diff Size:5 KB
<https://file.savannah.gnu.org/file/griddata_vector_inputs_bug65134.diff?file_id=55544>
AGPL NOTICE
These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://git.savannah.nongnu.org/cgit/administration/savane.git/snapshot/savane-674318988de1484e7bf702bfab8336fb35fb4650.tar.gz
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65134>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #65134] griddata function incompatibility with MATLAB, Arnaud Delorme, 2024/01/07
- [Octave-bug-tracker] [bug #65134] griddata function incompatibility with MATLAB, John W. Eaton, 2024/01/07
- [Octave-bug-tracker] [bug #65134] griddata function incompatibility with MATLAB, Nicholas Jankowski, 2024/01/08
- [Octave-bug-tracker] [bug #65134] griddata function incompatibility with MATLAB, Nicholas Jankowski, 2024/01/08
- [Octave-bug-tracker] [bug #65134] griddata function incompatibility with MATLAB, Rik, 2024/01/08
- [Octave-bug-tracker] [bug #65134] griddata row+col vector inputs do not implicitly expand to grid, Nicholas Jankowski, 2024/01/08
- [Octave-bug-tracker] [bug #65134] griddata row+col vector inputs do not implicitly expand to grid, Nicholas Jankowski, 2024/01/08
- [Octave-bug-tracker] [bug #65134] griddata row+col vector inputs do not implicitly expand to grid, Nicholas Jankowski, 2024/01/08
- [Octave-bug-tracker] [bug #65134] griddata col+row ordered query point inputs do not expand to grid (undocumented matlab), Nicholas Jankowski, 2024/01/08
- [Octave-bug-tracker] [bug #65134] griddata col+row ordered query point inputs do not expand to grid (undocumented matlab), Nicholas Jankowski, 2024/01/08
- [Octave-bug-tracker] [bug #65134] griddata: output size inconsistent for vector input interpolation points,
Nicholas Jankowski <=
- [Octave-bug-tracker] [bug #65134] griddata: output size inconsistent for vector input interpolation points, Nicholas Jankowski, 2024/01/10
- [Octave-bug-tracker] [bug #65134] griddata: output size inconsistent for vector input interpolation points, Rik, 2024/01/11