Mercurial > hg > octave-nkf
diff scripts/general/interpn.m @ 7424:132647e6c829
[project @ 2008-01-27 21:17:08 by dbateman]
author | dbateman |
---|---|
date | Sun, 27 Jan 2008 21:17:08 +0000 |
parents | 342a48abed2a |
children | a938cd7869b2 |
line wrap: on
line diff
--- a/scripts/general/interpn.m +++ b/scripts/general/interpn.m @@ -183,7 +183,7 @@ idx {i} = q; endfor vi = vi (cellfun (@(x) sub2ind (size(vi), x{:}), idx)); - vi = reshape (vi, sz); + vi = reshape (vi, size(y{1})); endif elseif (strcmp (method, "cubic")) error ("cubic interpolation not yet implemented");