Mercurial > hg > octave-lyh
comparison scripts/image/hsv.m @ 9751:2b0cc0b6db61
Add demos for colormap functions
author | Soren Hauberg <hauberg@gmail.com> |
---|---|
date | Thu, 22 Oct 2009 12:18:56 -0400 |
parents | eb63fbe60fab |
children | 466ba499eff5 |
comparison
equal
deleted
inserted
replaced
9750:7bf4f3d64955 | 9751:2b0cc0b6db61 |
---|---|
51 else | 51 else |
52 map = []; | 52 map = []; |
53 endif | 53 endif |
54 | 54 |
55 endfunction | 55 endfunction |
56 | |
57 %!demo | |
58 %! ## Show the 'hsv' colormap as an image | |
59 %! image (1:64, linspace (0, 1, 64), repmat (1:64, 64, 1)') | |
60 %! axis ([1, 64, 0, 1], "ticy", "xy") | |
61 %! colormap hsv | |
62 |