1
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
4
<LANGUAGE>eng</LANGUAGE>
5
<TITLE>mtlb_beta</TITLE>
6
<TYPE>M2SCI function</TYPE>
9
<SHORT_DESCRIPTION name="mtlb_beta">Matlab beta emulation function</SHORT_DESCRIPTION>
13
<P>Matlab and Scilab <VERB>beta</VERB> behave differently in some particular cases:</P>
20
With inputs having different sizes: Matlab <VERB>beta</VERB> input parameters must have
21
the same size unless one of them is a scalar. In Scilab <VERB>beta</VERB> input parameters
22
must have the same size even if one of them is a scalar.
30
The function <VERB>mtlb_beta(A,B)</VERB> is used by
31
<VERB>mfile2sci</VERB> to replace <VERB>beta(A,B)</VERB> when it was not
32
possible to know what were the inputs while porting Matlab code to Scilab. This function will
33
determine the correct semantic at run time. If you want to have a
34
more efficient code it is possible to replace <VERB>mtlb_beta</VERB> calls:
42
If <VERB>A</VERB> is a scalar but not <VERB>B</VERB>
43
<VERB>Y = mtlb_beta(A,B)</VERB> may be replaced by <VERB>C=B;C(:)=A;Y = mtlb_beta(C,B);</VERB>
49
If <VERB>B</VERB> is a scalar but not <VERB>A</VERB>
50
<VERB>Y = mtlb_beta(A,B)</VERB> may be replaced by <VERB>C=A;C(:)=B;Y = mtlb_beta(A,C);</VERB>
57
<P>Caution: <VERB>mtlb_beta</VERB> has not to be used for hand coded functions.</P>
62
<AUTHORS_ITEM>V.C.</AUTHORS_ITEM>