Mercurial > hg > octave-lyh
diff scripts/signal/arch_test.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 | c776f063fefe |
children | fd0a3ac60b0e |
line wrap: on
line diff
--- a/scripts/signal/arch_test.m +++ b/scripts/signal/arch_test.m @@ -73,7 +73,7 @@ endif if (! (isvector (y))) - error ("arch_test: y must be a vector"); + error ("arch_test: Y must be a vector"); endif T = length (y); y = reshape (y, T, 1); @@ -81,10 +81,10 @@ if ((rx == 1) && (cx == 1)) x = autoreg_matrix (y, x); elseif (! (rx == T)) - error ("arch_test: either rows(X) == length(y), or X is a scalar"); + error ("arch_test: either rows(X) == length(Y), or X is a scalar"); endif if (! (isscalar(p) && (rem(p, 1) == 0) && (p > 0))) - error ("arch_test: p must be a positive integer"); + error ("arch_test: P must be a positive integer"); endif [b, v_b, e] = ols (y, x);