~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to man/eng/mtlb/mtlb_double.xml

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
 
2
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
 
3
<MAN>
 
4
  <LANGUAGE>eng</LANGUAGE>
 
5
  <TITLE>mtlb_double</TITLE>
 
6
  <TYPE>M2SCI function</TYPE>
 
7
  <DATE>April 2004</DATE>
 
8
 
 
9
  <SHORT_DESCRIPTION name="mtlb_double">Matlab double emulation function</SHORT_DESCRIPTION>
 
10
 
 
11
  <DESCRIPTION>
 
12
 
 
13
    <P>Matlab and Scilab <VERB>double</VERB> behave differently in some particular cases:</P>
 
14
 
 
15
    <DESCRIPTION_INDENT>
 
16
    <DESCRIPTION_ITEM>
 
17
    <ITEMIZE>
 
18
      <ITEM>
 
19
        <SP>
 
20
        With character string input: Scilab <VERB>double</VERB> does not work with this type of input while Matlab <VERB>double</VERB> returns a matrix of ASCII codes.
 
21
        </SP>
 
22
      </ITEM>
 
23
 
 
24
      <ITEM>
 
25
        <SP>
 
26
        With boolean input: Scilab <VERB>double</VERB> does not work with this type of input while Matlab <VERB>double</VERB> returns a matrix of double values.
 
27
        </SP>
 
28
      </ITEM>
 
29
    </ITEMIZE>
 
30
    </DESCRIPTION_ITEM>
 
31
    </DESCRIPTION_INDENT>
 
32
 
 
33
    <P>
 
34
    The function <VERB>mtlb_double(A)</VERB> is used by
 
35
    <VERB>mfile2sci</VERB> to replace <VERB>double(A)</VERB> when it was not
 
36
    possible to know what were theinput while porting Matlab code to Scilab. This function will
 
37
    determine the correct semantic at run time. If you want to have a
 
38
    more efficient code it is possible to replace <VERB>mtlb_double</VERB> calls:
 
39
    </P>
 
40
 
 
41
    <DESCRIPTION_INDENT>
 
42
    <DESCRIPTION_ITEM>
 
43
    <ITEMIZE>
 
44
      <ITEM>
 
45
        <SP>
 
46
        If <VERB>A</VERB> is a character string, 
 
47
        <VERB>mtlb_double(A)</VERB> may be replaced by <VERB>asciimat(A)</VERB>
 
48
        </SP>
 
49
      </ITEM>
 
50
 
 
51
      <ITEM>
 
52
        <SP>
 
53
        If <VERB>A</VERB> is a boolean matrix,
 
54
        <VERB>mtlb_double(A)</VERB> may be replaced by <VERB>bool2s(A)</VERB>
 
55
        </SP>
 
56
      </ITEM>
 
57
 
 
58
      <ITEM>
 
59
        <SP>
 
60
        If <VERB>A</VERB> is a double matrix,
 
61
        <VERB>mtlb_double(A)</VERB> may be replaced by <VERB>A</VERB>
 
62
        </SP>
 
63
      </ITEM>
 
64
    </ITEMIZE>
 
65
    </DESCRIPTION_ITEM>
 
66
    </DESCRIPTION_INDENT>
 
67
 
 
68
    <P>Caution: <VERB>mtlb_double</VERB> has not to be used for hand coded functions.</P>
 
69
 
 
70
  </DESCRIPTION>
 
71
 
 
72
  <SEE_ALSO>
 
73
    <SEE_ALSO_ITEM> <LINK>asciimat</LINK> </SEE_ALSO_ITEM>
 
74
    <SEE_ALSO_ITEM> <LINK>bool2s</LINK> </SEE_ALSO_ITEM>
 
75
  </SEE_ALSO>
 
76
 
 
77
  <AUTHORS>
 
78
    <AUTHORS_ITEM>V.C.</AUTHORS_ITEM>
 
79
  </AUTHORS>
 
80
</MAN>