What problem does it solve?
Writing correct Symbolic Math Toolbox code is error-prone: deprecated string-based syntax, persistent assumptions, misused subs calls, and invalid function targets cause subtle bugs. This Skill provides verified syntax rules, workflow patterns, and common-mistake fixes so generated MATLAB symbolic code works correctly the first time.
Core Features & Use Cases
- Symbolic Computation Patterns: Correct usage of
syms/sym, solve, dsolve, diff, int, laplace, and assumption management with assume/assumeAlso.
- Conversion Pipelines: Convert symbolic results to numeric functions via
matlabFunction, to C code via codegen, to transfer functions for Control System Toolbox, and to PDE coefficients via pdeCoefficients.
- Specialized References: Ten reference files covering control systems, ODE solving, plotting (
fplot/fsurf), symmatrix atomic matrices, symunit physical units, and rewrite/combine expression targets.
- Use Case: Derive a transfer function from a mass-spring-damper ODE symbolically, convert it with
sym2poly, and pass it to tf for a Bode plot — all with correct syntax and zero deprecated calls.
Quick Start
Ask the agent to symbolically solve a differential equation or derive a transfer function, and it will apply these Symbolic Math Toolbox patterns to generate correct MATLAB code.