home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l460 / 2.ddi / STRFUN.DI$ / ISLETTER.M < prev    next >
Encoding:
Text File  |  1993-03-07  |  267 b   |  9 lines

  1. function t = isletter(c)
  2. %ISLETTER True for letters of the alphabet.
  3. %    For a string S, ISLETTER(S) is 1 for letters of the alphabet
  4. %    and 0 otherwise.
  5.  
  6. %    Copyright (c) 1984-93 by The MathWorks, Inc.
  7.  
  8. t = (('a' <= c) & (c <= 'z')) | (('A' <= c) & (c <= 'Z'));
  9.