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

x = 100;
xtype = class(x)

%

y = uint8(x)

% Copyright 2012 The MathWorks, Inc.