Mercurial > octave-antonio
diff scripts/statistics/distributions/unifrnd.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 | be55736a0783 |
children | fd0a3ac60b0e |
line wrap: on
line diff
--- a/scripts/statistics/distributions/unifrnd.m Sun Jan 09 16:01:05 2011 -0800 +++ b/scripts/statistics/distributions/unifrnd.m Sun Jan 09 21:33:04 2011 -0800 @@ -36,23 +36,23 @@ if (!isscalar(a) || !isscalar(b)) [retval, a, b] = common_size (a, b); if (retval > 0) - error ("unifrnd: a and b must be of common size or scalar"); + error ("unifrnd: A and B must be of common size or scalar"); endif endif endif if (nargin == 4) if (! (isscalar (r) && (r > 0) && (r == round (r)))) - error ("unifrnd: r must be a positive integer"); + error ("unifrnd: R must be a positive integer"); endif if (! (isscalar (c) && (c > 0) && (c == round (c)))) - error ("unifrnd: c must be a positive integer"); + error ("unifrnd: C must be a positive integer"); endif sz = [r, c]; if (any (size (a) != 1) && (length (size (a)) != length (sz) || any (size (a) != sz))) - error ("unifrnd: a and b must be scalar or of size [r, c]"); + error ("unifrnd: A and B must be scalar or of size [R, C]"); endif elseif (nargin == 3) if (isscalar (r) && (r > 0)) @@ -60,12 +60,12 @@ elseif (isvector(r) && all (r > 0)) sz = r(:)'; else - error ("unifrnd: r must be a positive integer or vector"); + error ("unifrnd: R must be a positive integer or vector"); endif if (any (size (a) != 1) && (length (size (a)) != length (sz) || any (size (a) != sz))) - error ("unifrnd: a and b must be scalar or of size sz"); + error ("unifrnd: A and B must be scalar or of size SZ"); endif elseif (nargin == 2) sz = size(a);