diff scripts/image/white.m @ 14279:f205d0074687

Update colormap files with faster code. * autumn.m, bone.m, cool.m, copper.m, flag.m, gmap40.m, gray.m, hot.m, hsv.m, jet.m, lines.m, ocean.m, pink.m, prism.m, rainbow.m, spring.m, summer.m, white.m, winter.m: Use indexing in place of kron or repmat for faster code.
author Rik <octave@nomad.inbox5.com>
date Sat, 28 Jan 2012 22:33:57 -0800
parents 11949c9795a0
children b9c02ee24de1
line wrap: on
line diff
--- a/scripts/image/white.m	Sun Jan 29 00:52:19 2012 -0500
+++ b/scripts/image/white.m	Sat Jan 28 22:33:57 2012 -0800
@@ -39,11 +39,7 @@
     print_usage ();
   endif
 
-  if (n > 0)
-    map = ones (n, 3);
-  else
-    map = [];
-  endif
+  map = ones (n, 3);
 
 endfunction