gopalrk / gerardus

Automatically exported from code.google.com/p/gerardus
0 stars 0 forks source link

Why change interp3 by interpn in scimat_intersect_plane #55

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In revision 1702, Ben made the change below to 
FilterToolbox/scimat_intersect_plane.m

Why do we need interpn if the number of its input variables hasn't changed?

=======================================
--- /trunk/matlab/FiltersToolbox/scimat_intersect_plane.m       Fri Jun 13 
14:51:46 2014 UTC
+++ /trunk/matlab/FiltersToolbox/scimat_intersect_plane.m       Mon Mar  9 
20:46:13 2015 UTC
@@ -134,7 +134,7 @@
         xi = grcs(1, idxin);
         yi = grcs(2, idxin);
         zi = grcs(3, idxin);
-        im(idxin) = interp3(scimat.data, yi, xi, zi, interp);
+        im(idxin) = interpn(scimat.data, yi, xi, zi, interp);
     otherwise
         error('Interpolation method not implemented')
 end

Original issue reported on code.google.com by rcas...@gmail.com on 10 Mar 2015 at 11:54