diff scripts/statistics/distributions/discrete_pdf.m @ 11472:1740012184f9

Use uppercase for variable names in error() strings to match Info documentation. Only m-files done.
author Rik <octave@nomad.inbox5.com>
date Sun, 09 Jan 2011 21:33:04 -0800
parents 83da69c6e7be
children fd0a3ac60b0e
line wrap: on
line diff
--- a/scripts/statistics/distributions/discrete_pdf.m
+++ b/scripts/statistics/distributions/discrete_pdf.m
@@ -36,11 +36,11 @@
   sz = size (x);
 
   if (! isvector (v))
-    error ("discrete_pdf: v must be a vector");
+    error ("discrete_pdf: V must be a vector");
   elseif (! isvector (p) || (length (p) != length (v)))
-    error ("discrete_pdf: p must be a vector with length (v) elements");
+    error ("discrete_pdf: P must be a vector with length (V) elements");
   elseif (! (all (p >= 0) && any (p)))
-    error ("discrete_pdf: p must be a nonzero, nonnegative vector");
+    error ("discrete_pdf: P must be a nonzero, nonnegative vector");
   endif
 
   n = numel (x);