changeset 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 fe4a43e1d1d3
files scripts/general/interpn.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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");