Catatan harian seorang muslim

Ya Allah.. berilah kami ridlo-Mu

Matlab: ceil fix floor and round

Ditulis oleh orgawam di/pada Agustus 7, 2007

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

Tinggalkan Balasan

XHTML: Anda dapat gunakan tag ini: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>