7017
|
1 ## Copyright (C) 1998, 2000, 2004, 2005, 2006, 2007 John W. Eaton |
3169
|
2 ## |
|
3 ## This file is part of Octave. |
|
4 ## |
|
5 ## Octave is free software; you can redistribute it and/or modify it |
|
6 ## under the terms of the GNU General Public License as published by |
7016
|
7 ## the Free Software Foundation; either version 3 of the License, or (at |
|
8 ## your option) any later version. |
3169
|
9 ## |
|
10 ## Octave is distributed in the hope that it will be useful, but |
|
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
13 ## General Public License for more details. |
|
14 ## |
|
15 ## You should have received a copy of the GNU General Public License |
7016
|
16 ## along with Octave; see the file COPYING. If not, see |
|
17 ## <http://www.gnu.org/licenses/>. |
3169
|
18 |
3446
|
19 ## -*- texinfo -*- |
3501
|
20 ## @deftypefn {Function File} {} isletter (@var{s}) |
3426
|
21 ## Returns true if @var{s} is a letter false otherwise. |
5642
|
22 ## @seealso{isalpha} |
3407
|
23 ## @end deftypefn |
3169
|
24 |
|
25 ## Author: jwe |
|
26 |
|
27 function retval = isletter (s) |
|
28 |
|
29 if (nargin != 1) |
6046
|
30 print_usage (); |
3169
|
31 endif |
|
32 |
|
33 retval = isalpha (s); |
|
34 |
|
35 endfunction |