Mercurial > octave-nkf
comparison scripts/image/jet.m @ 15720:1a800034d443
Colormap error() calls now report the input variable which is a problem.
* autumn.m, bone.m, colorcube.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: Colormap error() calls now report the input
variable which is a problem.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 03 Dec 2012 09:38:58 -0800 |
parents | 5f1d4def40e1 |
children | 3731a1992083 |
comparison
equal
deleted
inserted
replaced
15719:20e9b56bbf2f | 15720:1a800034d443 |
---|---|
35 | 35 |
36 if (nargin == 0) | 36 if (nargin == 0) |
37 n = rows (colormap); | 37 n = rows (colormap); |
38 elseif (nargin == 1) | 38 elseif (nargin == 1) |
39 if (! isscalar (n)) | 39 if (! isscalar (n)) |
40 error ("jet: argument must be a scalar"); | 40 error ("jet: N must be a scalar"); |
41 endif | 41 endif |
42 else | 42 else |
43 print_usage (); | 43 print_usage (); |
44 endif | 44 endif |
45 | 45 |