comparison scripts/image/brighten.m @ 10606:ec34c7acd057

Replace deprecated function calls in statistics tests Patch provided by Alois Schlögl.
author Rik <octave@nomad.inbox5.com>
date Wed, 05 May 2010 21:14:18 -0700
parents 1bf0ce0930be
children be55736a0783
comparison
equal deleted inserted replaced
10605:1834132fb50b 10606:ec34c7acd057
42 h = gcf (); 42 h = gcf ();
43 elseif (nargin == 2) 43 elseif (nargin == 2)
44 if (ishandle (m)) 44 if (ishandle (m))
45 h = m; 45 h = m;
46 m = get (h, "colormap"); 46 m = get (h, "colormap");
47 elseif (! is_matrix (m) || size (m, 2) != 3) 47 elseif (! ismatrix (m) || size (m, 2) != 3)
48 error ("brighten: first argument must be an Nx3 matrix or a handle"); 48 error ("brighten: first argument must be an Nx3 matrix or a handle");
49 endif 49 endif
50 else 50 else
51 print_usage (); 51 print_usage ();
52 endif 52 endif