1
function [tree]=sci_uint16(tree)
2
// File generated from sci_PROTO9.g: PLEASE DO NOT EDIT !
5
// Conversion function for Matlab uint16()
6
// Input: tree = Matlab funcall tree
7
// Ouput: tree = Scilab equivalent for tree
8
// Emulation function: mtlb_uint16()
11
// %c_uint16 and %b_uint16 are not defined in Scilab
14
// Matlab uint16() can return Boolean type value
15
if or(x.vtype==[Boolean,Unknown]) then
26
set_infos("Scilab uint16() does not work with Complex values: uint16() call IGNORED !",2);
27
if typeof(x)=="operation" then
29
elseif typeof(x)=="funcall" then
33
elseif ~is_real(x) then
34
set_infos("Scilab uint16() does not work with Complex values: uint16() call IGNORED !",2);
35
repl_poss(x,tree,x,"is real")
36
if typeof(x)=="operation" then
38
elseif typeof(x)=="funcall" then
43
tree.name="mtlb_uint16"
44
tree.lhs(1).dims=x.dims
45
tree.lhs(1).type=x.type