changeset 10859:09144fbb0e36

Fix bug #30400 when bicubic called with small numbers of arguments.
author Rik <octave@nomad.inbox5.com>
date Thu, 05 Aug 2010 15:13:50 -0700
parents bf000a56a985
children 3a5f5c99cc39
files scripts/ChangeLog scripts/general/bicubic.m
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -1,3 +1,8 @@
+2010-08-01 Marco Caliari <marco.caliari@univr.it>
+
+	* general/bicubic.m: Fix bug #30400 when bicubic called with small
+	numbers of arguments.
+
 2010-08-04  Jaroslav Hajek  <highegg@gmail.com>
 
 	* general/sortrows.m: Don't actually permute the rows if not
--- a/scripts/general/bicubic.m
+++ b/scripts/general/bicubic.m
@@ -177,7 +177,7 @@
   cs3 = cs3([1,1,1,1],:);
 
   lent = length (ct0);
-  lens = length (cs0);
+  lens = columns (cs0);
   F = zeros (lent, lens);
   
   for i = 1:lent