diff scripts/general/linspace.m @ 900:f8c8c2461f4d

[project @ 1994-11-09 18:39:40 by jwe]
author jwe
date Wed, 09 Nov 1994 18:39:40 +0000
parents 0ce34c2fc3d5
children 3470f1e25a79
line wrap: on
line diff
--- a/scripts/general/linspace.m
+++ b/scripts/general/linspace.m
@@ -33,7 +33,7 @@
     npoints = 100;
   elseif (nargin == 3)
     if (length (n) == 1)
-      npoints = n;
+      npoints = fix (n);
     else
       error ("linspace: arguments must be scalars");
     endif