Matlab: ceil fix floor and round
Selama ini agak bingung membedakan antara ceil fix floor & round di Matlab. Ini hasilnya,
CCeil = ceil([-1.55 -1.50 -1.45 1.45 1.50 1.55])
CCeil =
-1 -1 -1 2 2 2
Ffix = fix([-1.55 -1.50 -1.45 1.45 1.50 1.55])
Ffix =
-1 -1 -1 1 1 1
Ffloor = floor([-1.55 -1.50 -1.45 1.45 1.50 1.55])
Ffloor =
-2 -2 -2 1 1 1
Rround = round([-1.55 -1.50 -1.45 1.45 1.50 1.55])
Rround =
-2 -2 -1 1 2 2