13
13
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="mtlb_isletter">
15
<refname>mtlb_isletter</refname>
16
<refpurpose>Matlab isletter emulation function</refpurpose>
19
<title>Description</title>
21
There is no Scilab equivalent function for Matlab <literal>isletter</literal> and equivalent instructions are quite ugly, so
22
<literal>mfile2sci</literal> uses <literal>mtlb_isletter(A)</literal> to replace <literal>isletter(A)</literal>. If you want to have a
23
more efficient code it is possible to replace <literal>mtlb_isletter</literal> calls:
28
If <literal>A</literal> is not a character string
29
<literal>tf = mtlb_isletter(A)</literal> may be replaced by <literal>tf = zeros(A)</literal>
34
If <literal>A</literal> is a character string
35
<literal>tf = mtlb_isletter(A)</literal> may be replaced by
36
<literal>tf = (asciimat(A)>=65&asciimat(A)<=90)|(asciimat(A)>=97&asciimat(A)<=122)</literal>
41
Caution: <literal>mtlb_isletter</literal> has not to be used for hand coded functions.
15
<refname>mtlb_isletter</refname>
16
<refpurpose>Matlab isletter emulation function</refpurpose>
19
<title>Description</title>
21
There is no Scilab equivalent function for Matlab <literal>isletter</literal> and equivalent instructions are quite ugly, so
22
<literal>mfile2sci</literal> uses <literal>mtlb_isletter(A)</literal> to replace <literal>isletter(A)</literal>. If you want to have a
23
more efficient code it is possible to replace <literal>mtlb_isletter</literal> calls:
28
If <literal>A</literal> is not a character string
29
<literal>tf = mtlb_isletter(A)</literal> may be replaced by <literal>tf = zeros(A)</literal>
34
If <literal>A</literal> is a character string
35
<literal>tf = mtlb_isletter(A)</literal> may be replaced by
36
<literal>tf = (asciimat(A)>=65&asciimat(A)<=90)|(asciimat(A)>=97&asciimat(A)<=122)</literal>
41
Caution: <literal>mtlb_isletter</literal> has not to be used for hand coded functions.