%% Convert Value Larger Than intmax
% Return the largest value of the 8-bit signed integer type, which is 127.

v = intmax('int8')

% Convert a value larger than 127 to 8-bit signed integer.

v1 = int8(198)

% The converted value becomes 127.
% Check that v1 is the same as v.

isequal(v,v1)

%
% Copyright 2019 The MathWorks, Inc.