Products & Services Solutions Academia Support User Community Company

Learn more about Symbolic Math Toolbox   

mod - Symbolic matrix elementwise modulus

Syntax

C = mod(A, B)

Description

C = mod(A, B) for symbolic matrices A and B with integer elements is the positive remainder in the elementwise division of A by B. For matrices with polynomial entries, mod(A, B) is applied to the individual coefficients.

Examples

ten = sym('10');
mod(2^ten, ten^3)
ans =
24
syms x
mod(x^3 - 2*x + 999, 10)
ans =
x^3 + 8*x + 9

See Also

quorem

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS