[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #30295] interpN input validation needs improve
From: |
Ben Abbott |
Subject: |
[Octave-bug-tracker] [bug #30295] interpN input validation needs improvement |
Date: |
Sat, 17 Sep 2011 20:17:54 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_1) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.220 Safari/535.1 |
Update of bug #30295 (project octave):
Summary: interp2 / interp3 input validation needs improvement
=> interpN input validation needs improvement
_______________________________________________________
Follow-up Comment #5:
The problem with interp3 is trivial. The changeset is below.
http://hg.savannah.gnu.org/hgweb/octave/rev/621108cf81d1
The remaining problem is with interpn(). With Matlab ...
>> interpn ([1, 3;3, 5])
ans =
1 2 3
2 3 4
3 4 5
... and Octave ...
>> interpn ([1 3; 3 5])
error: interpn: subscript indices must be either positive integers or
logicals
error: called from:
error:
/Users/bpabbott/Development/mercurial/stable/scripts/general/interpn.m at line
77, column 3
If the interleave factor is explicitly set to one, the result is still
incorrect.
>> interpn ([1 3; 3 5], 1)
ans =
1 3 5
I'm changing the summary again to better represent the bug.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?30295>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/