diff scripts/plot/hist.m @ 904:3470f1e25a79

[project @ 1994-11-09 21:22:15 by jwe]
author jwe
date Wed, 09 Nov 1994 21:22:15 +0000
parents c8f88bd3202b
children 3f257ab07921
line wrap: on
line diff
--- a/scripts/plot/hist.m
+++ b/scripts/plot/hist.m
@@ -40,7 +40,7 @@
 # See also: bar
 
   if (nargin < 1 || nargin > 2)
-    error ("usage: [nn, xx] = hist (y, x)");
+    usage ("[nn, xx] = hist (y, x)");
   endif
     
   if (is_vector (y))
@@ -67,7 +67,7 @@
     elseif (is_vector (x))
       tmp = sort (x);
       if (any (tmp != x))
-        fprintf (stderr, "warning: hist: bin values not sorted on input\n");
+        warning ("hist: bin values not sorted on input");
         x = tmp;
       endif
       n = length (x);