fix

fix — rounding towards zero

Calling sequence

[y]=fix(x)  

Parameters

x : a real matrix
y : integer matrix

Description

fix(x) returns an integer matrix made of nearest rounded integers toward zero,i.e, y=sign(x).*floor(abs(x)). Same as int.

See also

round, floor, ceil