diff scripts/general/postpad.m @ 7208:a730e47fda4d

[project @ 2007-11-28 02:32:41 by jwe]
author jwe
date Wed, 28 Nov 2007 02:32:42 +0000
parents a1dbe9d80eee
children 3292bd1bbaa4
line wrap: on
line diff
--- a/scripts/general/postpad.m	Wed Nov 28 02:20:48 2007 +0000
+++ b/scripts/general/postpad.m	Wed Nov 28 02:32:42 2007 +0000
@@ -70,10 +70,10 @@
   if (d >= l)
     idx = cell ();
     for i = 1:nd
-      idx {i} = 1:sz(i);
+      idx{i} = 1:sz(i);
     endfor
-    idx {dim} = 1:l;
-    y = x (idx {:});
+    idx{dim} = 1:l;
+    y = x(idx{:});
   else
     sz (dim) = l - d;
     y = cat (dim, x, c * ones (sz));