1
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2
<!-- When this file is modified please also modify mtlb_triu.xml -->
3
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
5
<LANGUAGE>eng</LANGUAGE>
6
<TITLE>mtlb_tril</TITLE>
7
<TYPE>M2SCI function</TYPE>
8
<DATE>April 2004</DATE>
10
<SHORT_DESCRIPTION name="mtlb_tril">Matlab tril emulation function</SHORT_DESCRIPTION>
14
<P>Matlab and Scilab <VERB>tril</VERB> behave differently in some particular cases:</P>
21
With complex input: Matlab <VERB>tril</VERB> can be used with complex data but not Scilab one.
27
With character strings inputs: due to the fact the Matlab and Scilab do not consider character
28
strings in the same way, Scilab and Matlab <VERB>tril</VERB> do not give the same results
29
for this type of input.
35
With boolean inputs: Matlab <VERB>tril</VERB> can be used with boobean data but not Scilab one.
43
The function <VERB>mtlb_tril(x,k)</VERB> is used by
44
<VERB>mfile2sci</VERB> to replace <VERB>tril(x,k)</VERB> when it was not
45
possible to know what were the inputs while porting Matlab code to Scilab. This function will
46
determine the correct semantic at run time. If you want to have a
47
more efficient code it is possible to replace <VERB>mtlb_tril</VERB> calls:
55
If <VERB>X</VERB> contains real double values
56
<VERB>mtlb_tril(x,k)</VERB> may be replaced by <VERB>tril(x,k)</VERB>
62
If <VERB>X</VERB> contains boolean values
63
<VERB>mtlb_tril(x,k)</VERB> may be replaced by <VERB>tril(bool2s(x),k)</VERB>
70
<P>Caution: <VERB>mtlb_tril</VERB> has not to be used for hand coded functions.</P>
75
<SEE_ALSO_ITEM> <LINK>Matlab-Scilab_character_strings</LINK> </SEE_ALSO_ITEM>
79
<AUTHORS_ITEM>V.C.</AUTHORS_ITEM>