| Symbolic Math Toolbox™ | ![]() |
C = mod(A, B)
C = mod(A, B) for symbolic matrices A and B with integer elements is the positive remainder in the element-wise division of A by B. For matrices with polynomial entries, mod(A, B) is applied to the individual coefficients.
ten = sym('10');
mod(2^ten,ten^3)
24
syms x
mod(x^3-2*x+999,10)
x^3+8*x+9![]() | mhelp | null | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |