www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/RoundMatrixElementsTowardPositiveInfinityExample.m

    %% Round Matrix Elements Toward Positive Infinity
%%

% Copyright 2015 The MathWorks, Inc.

X = [-1.9 -0.2 3.4; 5.6 7 2.4+3.6i];
Y = ceil(X)