Discrete Mathematics

Elementary number-theoretic operations, linear optimizations, graph theory, and more


MuPAD® notebooks will be removed in a future release. Use MATLAB® live scripts instead.

To convert a MuPAD notebook file to a MATLAB live script file, see convertMuPADNotebook. MATLAB live scripts support most MuPAD functionality, although there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.

  • Number Theory
    Primes, factorizations, modular arithmetic, congruences
  • Linear Optimization
    Algorithms for linear and integer programming
  • Boolean Algebra
    Boolean constants, evaluation of Boolean expressions
  • Graph Theory
    Model pairwise relations between objects using vertices and edges
  • Combinatorics
    Bell numbers, Catalan numbers, partitions and compositions of integers