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

x = 100;
xtype = class(x)
y = int8(x)

% Copyright 2012 The MathWorks, Inc.