home *** CD-ROM | disk | FTP | other *** search
- function a = lower(A)
- %LOWER Convert string to lower case.
- % b = lower(A) converts any upper case characters in A to
- % the corresponding lower case character and leaves all
- % other characters unchanged.
- %
- % See also UPPER.
-
- % Copyright (c) 1984-93 by The MathWorks, Inc.
-
- oldflops = flops;
- if ~isstr(A)
- a = A;
- else
- mask = ((A >= 'A') & (A <= 'Z'));
- a = setstr(A + ('a' - 'A')*mask);
- end
- flops(oldflops);
-