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

« back to all changes in this revision

Viewing changes to modules/m2sci/help/en_US/m2sci_equivalents/u/uint16.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:id="m2sci_uint16">
14
 
  <refnamediv>
15
 
    <refname>uint16 (Matlab function)</refname>
16
 
    <refpurpose>Convert to 16-bit unsigned integer</refpurpose>
17
 
  </refnamediv>
18
 
  <refsection>
19
 
    <title>Matlab/Scilab equivalent</title>
20
 
    <informaltable border="1" width="100%">
21
 
      <tr>
22
 
        <td align="center">
23
 
          <emphasis role="bold">Matlab</emphasis>
24
 
        </td>
25
 
        <td align="center">
26
 
          <emphasis role="bold">Scilab</emphasis>
27
 
        </td>
28
 
      </tr>
29
 
      <tr>
30
 
        <td>
31
 
          <programlisting role="example"><![CDATA[
32
 
uint16
33
 
]]></programlisting>
34
 
        </td>
35
 
        <td>
36
 
          <programlisting role="example"><![CDATA[
37
 
uint16
38
 
]]></programlisting>
39
 
        </td>
40
 
      </tr>
41
 
    </informaltable>
42
 
  </refsection>
43
 
  <refsection>
44
 
    <title>Particular cases</title>
45
 
    <para>
46
 
For infinite values, Scilab and Matlab <emphasis role="bold">uint16</emphasis> return different values.
47
 
</para>
48
 
  </refsection>
49
 
  <refsection>
50
 
    <title>Examples</title>
51
 
    <informaltable border="1" width="100%">
52
 
      <tr>
53
 
        <td align="center">
54
 
          <emphasis role="bold">Matlab</emphasis>
55
 
        </td>
56
 
        <td align="center">
57
 
          <emphasis role="bold">Scilab</emphasis>
58
 
        </td>
59
 
      </tr>
60
 
      <tr>
61
 
        <td>
62
 
          <programlisting role="example"><![CDATA[
 
14
    <refnamediv>
 
15
        <refname>uint16 (Matlab function)</refname>
 
16
        <refpurpose>Convert to 16-bit unsigned integer</refpurpose>
 
17
    </refnamediv>
 
18
    <refsection>
 
19
        <title>Matlab/Scilab equivalent</title>
 
20
        <informaltable border="1" width="100%">
 
21
            <tr>
 
22
                <td align="center">
 
23
                    <emphasis role="bold">Matlab</emphasis>
 
24
                </td>
 
25
                <td align="center">
 
26
                    <emphasis role="bold">Scilab</emphasis>
 
27
                </td>
 
28
            </tr>
 
29
            <tr>
 
30
                <td>
 
31
                    <programlisting role="example"><![CDATA[
 
32
uint16
 
33
]]></programlisting>
 
34
                </td>
 
35
                <td>
 
36
                    <programlisting role="example"><![CDATA[
 
37
uint16
 
38
]]></programlisting>
 
39
                </td>
 
40
            </tr>
 
41
        </informaltable>
 
42
    </refsection>
 
43
    <refsection>
 
44
        <title>Particular cases</title>
 
45
        <para>
 
46
            For infinite values, Scilab and Matlab <emphasis role="bold">uint16</emphasis> return different values.
 
47
        </para>
 
48
    </refsection>
 
49
    <refsection>
 
50
        <title>Examples</title>
 
51
        <informaltable border="1" width="100%">
 
52
            <tr>
 
53
                <td align="center">
 
54
                    <emphasis role="bold">Matlab</emphasis>
 
55
                </td>
 
56
                <td align="center">
 
57
                    <emphasis role="bold">Scilab</emphasis>
 
58
                </td>
 
59
            </tr>
 
60
            <tr>
 
61
                <td>
 
62
                    <programlisting role="example"><![CDATA[
63
63
A = uint16(inf)
64
64
A = 65535
65
65
]]></programlisting>
66
 
        </td>
67
 
        <td>
68
 
          <programlisting role="example"><![CDATA[
 
66
                </td>
 
67
                <td>
 
68
                    <programlisting role="example"><![CDATA[
69
69
A = uint16(%inf)
70
70
A = 0
71
71
]]></programlisting>
72
 
        </td>
73
 
      </tr>
74
 
    </informaltable>
75
 
  </refsection>
 
72
                </td>
 
73
            </tr>
 
74
        </informaltable>
 
75
    </refsection>
76
76
</refentry>