diff scripts/image/prism.m @ 9751:2b0cc0b6db61

Add demos for colormap functions
author Soren Hauberg <hauberg@gmail.com>
date Thu, 22 Oct 2009 12:18:56 -0400
parents 16f53d29049f
children 466ba499eff5
line wrap: on
line diff
--- a/scripts/image/prism.m
+++ b/scripts/image/prism.m
@@ -47,3 +47,10 @@
   endif
 
 endfunction
+
+%!demo
+%! ## Show the 'prism' colormap as an image
+%! image (1:64, linspace (0, 1, 64), repmat (1:64, 64, 1)')
+%! axis ([1, 64, 0, 1], "ticy", "xy")
+%! colormap prism
+