Mercurial > hg > octave-jordi
comparison scripts/image/spring.m @ 6791:be31a048c449
[project @ 2007-07-24 19:04:51 by dbateman]
author | dbateman |
---|---|
date | Tue, 24 Jul 2007 19:04:51 +0000 |
parents | c81a0f3f5a82 |
children | 93c65f2a5668 |
comparison
equal
deleted
inserted
replaced
6790:f1157da78825 | 6791:be31a048c449 |
---|---|
30 function map = spring (number) | 30 function map = spring (number) |
31 | 31 |
32 if (nargin == 0) | 32 if (nargin == 0) |
33 number = rows (colormap); | 33 number = rows (colormap); |
34 elseif (nargin == 1) | 34 elseif (nargin == 1) |
35 if (! is_scalar (number)) | 35 if (! isscalar (number)) |
36 error ("spring: argument must be a scalar"); | 36 error ("spring: argument must be a scalar"); |
37 endif | 37 endif |
38 else | 38 else |
39 print_usage (); | 39 print_usage (); |
40 endif | 40 endif |