diff scripts/image/imshow.m @ 9273:61abb94f46f4

fix imshow demos
author John W. Eaton <jwe@octave.org>
date Wed, 27 May 2009 06:21:36 -0400
parents 06518194dba0
children 8cf666139297
line wrap: on
line diff
--- a/scripts/image/imshow.m
+++ b/scripts/image/imshow.m
@@ -186,12 +186,13 @@
 %!  colormap ("autumn");
 
 %!demo
-%!  [I, M] = loadimage ("default.img");
+%!  [I, M] = imread ("default.img");
 %!  imshow (I, M);
 
 %!demo
-%!  [I, M] = loadimage ("default.img");
-%!  imshow (cat(3, I, I*0.5, I*0.8));
+%!  [I, M] = imread ("default.img");
+%!  [R, G, B] = ind2rgb (I, M);
+%!  imshow (cat(3, R, G*0.5, B*0.8));
 
 %!demo
 %!  imshow (rand (100, 100));