Symbolic Math Toolbox

The Symbolic Math Toolbox enables solving, plotting, and manipulating symbolic equations in MATLAB. It supports differentiation, integration, equation solving, and dimensional computations. You can work with variable-precision arithmetic and display results in mathematical typeset. Share your work as live scripts or export to HTML, Word, LaTeX, or PDF. Generate MATLAB functions, Simulink blocks, and Simscape equations from symbolic expressions.

Calculus

Evaluate exact analytical solutions for definite or indefinite integrals, calculate derivatives of symbolic expressions or functions, and approximate functions using series expansions.

Solving, Simplification, and Substitution

Solve linear and nonlinear algebraic and differential equations analytically. Simplify and rewrite symbolic expressions, and evaluate them by substituting specific values.

Linear Algebra

Analyze, transform, and decompose symbolic matrices to explore the properties of linear equations. Perform linear algebra operations and solve systems of linear equations in matrix or equation form.

Visualization

Use built-in functions to plot symbolic expressions and functions with MATLAB’s extended graphics capabilities. Visualize symbolic expressions’ behavior through animations.

Variable-Precision Arithmetic (VPA)

Set the number of significant digits explicitly to avoid round-off errors. Improve calculation speed by reducing precision with variable-precision arithmetic.

Units and Dimensional Analysis

Perform dimensional analysis to verify the compatibility and consistency of units in symbolic calculations. Create custom unit systems and convert between different unit systems.

Documentation and Sharing

Interactively update and display symbolic math computations and get next-step suggestions for symbolic workflows using the MATLAB Live Editor. Share your work as live scripts or publish your code to create formatted documents including HTML, Word, LaTeX, and PDF.

Code Generation

Generate MATLAB functions, Simulink function blocks, custom equation-based Simscape components, and C or Fortran code directly from symbolic expressions.

Scroll to Top