Use idivide :
C = idivide (A, B) is the same as A./B, except that fractional ratios are rounded to zero to the nearest integers.
There is a third optional parameter for controlling rounding behavior, which is explained on the MathWorks site I am associated with.
source
share