tags:

views:

302

answers:

2

I wonder how to get quotient in matlab? Thanks and regards!

A: 

just divide and round down?

or are you talking about integer division, in which case use idivide

Pyrolistical
I believe you meant to say `idivide`, not `divideint`: http://www.mathworks.com/access/helpdesk/help/techdoc/ref/idivide.html
gnovice
sorry , corrected
Pyrolistical
+1  A: 

Use idivide:

C = idivide(A, B) is the same as A./B except that fractional quotients are rounded toward zero to the nearest integers.

There's a third optional parameter for controlling the rounding behavior that's explained on the MathWorks site that I linked to.

Bill the Lizard

related questions