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
2010-04-08 20:16:12
I believe you meant to say `idivide`, not `divideint`: http://www.mathworks.com/access/helpdesk/help/techdoc/ref/idivide.html
gnovice
2010-04-08 20:24:27
sorry , corrected
Pyrolistical
2010-04-08 20:25:41
+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
2010-04-08 20:24:16