Symbolic Math Toolbox
Symbolic Math Toolbox allows you to create, manipulate, and visualize symbolic equations within MATLAB. It provides capabilities for differentiation, integration, solving equations, and performing computations with units. You can use variable-precision arithmetic and present results in formatted mathematical notation. Work can be shared as live scripts or exported to HTML, Word, LaTeX, or PDF. Symbolic expressions can also be converted into MATLAB functions, Simulink blocks, or Simscape equations.
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.