Mercurial > hg > octave-nkf
comparison scripts/image/white.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 | b9c02ee24de1 |
children | d63878346099 |
comparison
equal
deleted
inserted
replaced
15719:20e9b56bbf2f | 15720:1a800034d443 |
---|---|
34 | 34 |
35 if (nargin == 0) | 35 if (nargin == 0) |
36 n = rows (colormap); | 36 n = rows (colormap); |
37 elseif (nargin == 1) | 37 elseif (nargin == 1) |
38 if (! isscalar (n)) | 38 if (! isscalar (n)) |
39 error ("white: argument must be a scalar"); | 39 error ("white: N must be a scalar"); |
40 endif | 40 endif |
41 else | 41 else |
42 print_usage (); | 42 print_usage (); |
43 endif | 43 endif |
44 | 44 |