comparison scripts/statistics/distributions/binopdf.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 a1dbe9d80eee
children fd0a3ac60b0e
comparison
equal deleted inserted replaced
11471:994e2a93a8e2 11472:1740012184f9
33 endif 33 endif
34 34
35 if (! isscalar (n) || ! isscalar (p)) 35 if (! isscalar (n) || ! isscalar (p))
36 [retval, x, n, p] = common_size (x, n, p); 36 [retval, x, n, p] = common_size (x, n, p);
37 if (retval > 0) 37 if (retval > 0)
38 error ("binopdf: x, n and p must be of common size or scalar"); 38 error ("binopdf: X, N and P must be of common size or scalar");
39 endif 39 endif
40 endif 40 endif
41 41
42 k = ((x >= 0) & (x <= n) 42 k = ((x >= 0) & (x <= n)
43 & (x == round (x)) & (n == round (n)) 43 & (x == round (x)) & (n == round (n))