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

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

% Copyright 2012 The MathWorks, Inc.