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

x = 100;
xtype = class(x)

%

y = int32(x)

% Copyright 2012 The MathWorks, Inc.