Mercurial > octave-antonio
comparison scripts/signal/bartlett.m @ 19827:2e556954ced8
bartlett: Reword error message for consistency
* bartlett.m: Reword error message for consistency with other functions.
author | Mike Miller <mtmiller@ieee.org> |
---|---|
date | Sun, 22 Feb 2015 18:12:57 -0500 |
parents | 4197fc428c7d |
children | d209fbae38ae |
comparison
equal
deleted
inserted
replaced
19826:26fb4bfa4193 | 19827:2e556954ced8 |
---|---|
34 if (nargin != 1) | 34 if (nargin != 1) |
35 print_usage (); | 35 print_usage (); |
36 endif | 36 endif |
37 | 37 |
38 if (! (isscalar (m) && (m == fix (m)) && (m > 0))) | 38 if (! (isscalar (m) && (m == fix (m)) && (m > 0))) |
39 error ("bartlett: M has to be an integer > 0"); | 39 error ("bartlett: M must be a positive integer"); |
40 endif | 40 endif |
41 | 41 |
42 if (m == 1) | 42 if (m == 1) |
43 c = 1; | 43 c = 1; |
44 else | 44 else |