diff scripts/statistics/distributions/empirical_cdf.m @ 7125:f084ba47812b

[project @ 2007-11-08 02:29:23 by jwe]
author jwe
date Thu, 08 Nov 2007 02:29:24 +0000
parents a1dbe9d80eee
children 1740012184f9
line wrap: on
line diff
--- a/scripts/statistics/distributions/empirical_cdf.m	Thu Nov 08 01:09:44 2007 +0000
+++ b/scripts/statistics/distributions/empirical_cdf.m	Thu Nov 08 02:29:24 2007 +0000
@@ -28,6 +28,10 @@
 
 function cdf = empirical_cdf (x, data)
 
+  if (nargin != 2)
+    print_usage ();
+  endif
+
   if (! isvector (data))
     error ("empirical_cdf: data must be a vector");
   endif