[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #59856] interpn with vectors: unexpected error
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #59856] interpn with vectors: unexpected error regarding incompatible size |
Date: |
Tue, 12 Jan 2021 09:18:20 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 Edg/87.0.664.75 |
Update of bug #59856 (project octave):
Item Group: Unexpected Error or Warning => Matlab Compatibility
Status: None => Confirmed
Operating System: Microsoft Windows => Any
_______________________________________________________
Follow-up Comment #2:
>From the documentation of that function in Matlab:
https://www.mathworks.com/help/matlab/ref/interpn.html
> If Xq1,Xq2,...,Xqn are vectors of different orientations, then
Xq1,Xq2,...,Xqn are treated as grid vectors in Rn.
> If Xq1,Xq2,...,Xqn are vectors of the same size and orientation, then
Xq1,Xq2,...,Xqn are treated as scattered points in Rn.
Octave's documentation isn't very specific when it comes to different vector
*orientation*. But it looks like there is an issue if the numbers of elements
in the Y vectors coincide (and they have *differing* orientation).
The last result in comment #1 looks correct to me. The output is an array with
the values at the 3 (scattered) points for which coordinates are provided.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?59856>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/