%% Round Matrix Elements
% Round the elements of a 2-by-2 matrix to the nearest integer.

X = [2.11 3.5; -3.5 0.78];
Y = round(X)

% Copyright 2012 The MathWorks, Inc.