Mercurial > octave
diff etc/NEWS.10.md @ 32726:d970ec60aa64
griddata: Match output size to vector interpolation points. (bug #65134)
* scripts/geometry/griddata.m: Change check for xi and yi so either
row-column combination passes them through meshgrid. Remove check that casts
all vectors to column vectors. Make size_equal check of xi and yi only if the
meshgrid codepath was not used. Add BIST verifying correct output shape for
row-column interpolating input combinations. Update expected output
orientation in test for bug #65146. Update docstring noting new
behavior.
* etc/NEWS.10.md: Note change to griddata behavior under Matlab Compatibility.
author | Nicholas R. Jankowski <jankowski.nicholas@gmail.com> |
---|---|
date | Wed, 10 Jan 2024 17:54:55 -0500 |
parents | 49d6ecd07a76 |
children | 39b341c858a7 |
line wrap: on
line diff
--- a/etc/NEWS.10.md Wed Jan 10 17:36:53 2024 -0800 +++ b/etc/NEWS.10.md Wed Jan 10 17:54:55 2024 -0500 @@ -31,6 +31,12 @@ - All colormaps now default to a size of 256 colors. (The previous default size was 64. +- `griddata` output size more consistently matches the input interpolation +points when they are input as vectors. When they are same-orientation vectors, +the outputs will be the same size as those vectors. When either is a row +vector and the other is a column vector, the interpolating points are processed +through meshgrid and the output is a matrix the same size as the meshgrid. + ### Alphabetical list of new functions added in Octave 10 * `rticklabels`