<< mtlb_true Compatible fonctions mtlb_uint32 >>

Scilab Help >> Code Matlab => Scilab > Compatible fonctions > mtlb_uint16

mtlb_uint16

Matlab uint16 emulation function

Description

Matlab and Scilab uint16 behave differently :

xuint16(x)mtlb_uint16(x)
%nan00
-%inf00
-2655340
-1655350
000
222
10.21010
10.51011
10.511011
.........
655356553565535
65536065535
65537165535
%inf6553565535

mtlb_uint16 has not to be used for hand coded functions.

The function mtlb_uint16(A) is used by mfile2sci to replace uint16(A) when it is not possible to know what is the input while porting Matlab code to Scilab. This function then determines the correct semantic at run time.


Report an issue
<< mtlb_true Compatible fonctions mtlb_uint32 >>