Mercurial > octave-nkf
comparison scripts/image/hot.m @ 10433:2c01d24459fb
Detabify scripts in 'scripts/image/'
author | Soren Hauberg <hauberg@gmail.com> |
---|---|
date | Mon, 22 Mar 2010 12:36:30 -0700 |
parents | 2b0cc0b6db61 |
children | 466ba499eff5 |
comparison
equal
deleted
inserted
replaced
10432:10207338603a | 10433:2c01d24459fb |
---|---|
29 function map = hot (number) | 29 function map = hot (number) |
30 | 30 |
31 if (nargin == 0) | 31 if (nargin == 0) |
32 number = rows (colormap); | 32 number = rows (colormap); |
33 elseif (nargin == 1) | 33 elseif (nargin == 1) |
34 if (! isscalar (number)) | 34 if (! isscalar (number)) |
35 error ("hot: argument must be a scalar"); | 35 error ("hot: argument must be a scalar"); |
36 endif | 36 endif |
37 else | 37 else |
38 print_usage (); | 38 print_usage (); |
39 endif | 39 endif |