Round toward zero - MATLAB fix - MathWorks - MATLAB and Simulink for Technical Computing
This MATLAB function rounds each element of X to the nearest integer toward zero. ... Input array, specified as a scalar, vector, matrix, or multidimensional array. For complex X, fix treats the real and imaginary parts independently....