1
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2
<!-- When this file is modified please also modify mtlb_uint8.xml and mtlb_uint16.xml-->
3
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
5
<LANGUAGE>eng</LANGUAGE>
6
<TITLE>mtlb_uint32</TITLE>
7
<TYPE>M2SCI function</TYPE>
8
<DATE>April 2004</DATE>
10
<SHORT_DESCRIPTION name="mtlb_uint32">Matlab uint32 emulation function</SHORT_DESCRIPTION>
14
<P>Matlab and Scilab <VERB>uint32</VERB> behave differently in some particular cases:</P>
21
With complex input: Matlab <VERB>uint32</VERB> can be used with complex values what Scilab function can not.
27
With <VERB>%inf</VERB>: Matlab <VERB>uint32</VERB> returns 4294967295 and Scilab returns 0.
35
The function <VERB>mtlb_uint32(A)</VERB> is used by
36
<VERB>mfile2sci</VERB> to replace <VERB>uint32(A)</VERB> when it was not
37
possible to know what was the input while porting Matlab code to Scilab. This function will
38
determine the correct semantic at run time. If you want to have a
39
more efficient code it is possible to replace <VERB>mtlb_uint32</VERB> calls:
47
If <VERB>A</VERB> does not contain <VERB>%inf</VERB> values
48
<VERB>mtlb_uint32(A)</VERB> may be replaced by <VERB>uint32(A)</VERB>
55
<P>Caution: <VERB>mtlb_uint32</VERB> has not to be used for hand coded functions.</P>
60
<AUTHORS_ITEM>V.C.</AUTHORS_ITEM>