~ubuntu-branches/ubuntu/raring/scilab/raring-proposed

« back to all changes in this revision

Viewing changes to modules/compatibility_functions/help/en_US/mtlb_isletter.xml

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-08-30 14:42:38 UTC
  • mfrom: (1.4.7)
  • Revision ID: package-import@ubuntu.com-20120830144238-c1y2og7dbm7m9nig
Tags: 5.4.0-beta-3-1~exp1
* New upstream release
* Update the scirenderer dep
* Get ride of libjhdf5-java dependency

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
    *
12
12
    -->
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">
14
 
  <refnamediv>
15
 
    <refname>mtlb_isletter</refname>
16
 
    <refpurpose>Matlab isletter emulation function</refpurpose>
17
 
  </refnamediv>
18
 
  <refsection>
19
 
    <title>Description</title>
20
 
    <para>
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:
24
 
    </para>
25
 
    <itemizedlist>
26
 
      <listitem>
27
 
        <para>
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>
30
 
        </para>
31
 
      </listitem>
32
 
      <listitem>
33
 
        <para>
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)&gt;=65&amp;asciimat(A)&lt;=90)|(asciimat(A)&gt;=97&amp;asciimat(A)&lt;=122)</literal>
37
 
        </para>
38
 
      </listitem>
39
 
    </itemizedlist>
40
 
    <para>
41
 
      Caution: <literal>mtlb_isletter</literal> has not to be used for hand coded functions.
42
 
    </para>
43
 
  </refsection>
 
14
    <refnamediv>
 
15
        <refname>mtlb_isletter</refname>
 
16
        <refpurpose>Matlab isletter emulation function</refpurpose>
 
17
    </refnamediv>
 
18
    <refsection>
 
19
        <title>Description</title>
 
20
        <para>
 
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:
 
24
        </para>
 
25
        <itemizedlist>
 
26
            <listitem>
 
27
                <para>
 
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>
 
30
                </para>
 
31
            </listitem>
 
32
            <listitem>
 
33
                <para>
 
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)&gt;=65&amp;asciimat(A)&lt;=90)|(asciimat(A)&gt;=97&amp;asciimat(A)&lt;=122)</literal>
 
37
                </para>
 
38
            </listitem>
 
39
        </itemizedlist>
 
40
        <para>
 
41
            Caution: <literal>mtlb_isletter</literal> has not to be used for hand coded functions.
 
42
        </para>
 
43
    </refsection>
44
44
</refentry>