Mercurial > octave-nkf
comparison scripts/image/flag.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 |
comparison
equal
deleted
inserted
replaced
9750:7bf4f3d64955 | 9751:2b0cc0b6db61 |
---|---|
49 m2 = p(1:rem (number, 4), :); | 49 m2 = p(1:rem (number, 4), :); |
50 map = [m1; m2]; | 50 map = [m1; m2]; |
51 endif | 51 endif |
52 | 52 |
53 endfunction | 53 endfunction |
54 | |
55 %!demo | |
56 %! ## Show the 'flag' colormap as an image | |
57 %! image (1:64, linspace (0, 1, 64), repmat (1:64, 64, 1)') | |
58 %! axis ([1, 64, 0, 1], "ticy", "xy") | |
59 %! colormap flag | |
60 |