%% Convert to 16-Bit Unsigned Integer Variable
% Convert a double-precision variable to a 16-bit unsigned integer.

x = 100;
xtype = class(x)

%

y = uint16(x)

% Copyright 2012 The MathWorks, Inc.