matlab-symbolic-math

Solid

Generate correct MATLAB code using the Symbolic Math Toolbox. Use when the user asks for symbolic computations, analytical solutions, symbolic differentiation/integration, equation solving, or converting symbolic results to numeric MATLAB functions. Also use when converting differential equations to transfer functions or state-space form.

AI & Automation 156 stars 31 forks Updated today NOASSERTION

Install

View on GitHub

Quality Score: 80/100

Stars 20%
73
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# MATLAB Symbolic Math Toolbox This skill provides guidelines, correct syntax, and common patterns for generating MATLAB® code that uses Symbolic Math Toolbox. ## When to Use This Skill - Creating or manipulating symbolic variables, expressions, and functions - Performing symbolic differentiation, integration, limits, or summation - Simplifying, factoring, expanding, or collecting symbolic expressions - Computing Laplace, Fourier, or Z-transforms and their inverses - Deriving transfer functions or state-space equations from differential equations - Displaying or plotting symbolic expressions - Using variable precision arithmetic (VPA) - Generating MATLAB functions, Simulink function blocks, Simscape equations, and C code from symbolic expressions ## Critical Rules ### 1. NEVER Pass Strings or Character Vectors to Symbolic Functions **WRONG (deprecated — warns today, errors in a future release; the single `=` in `solve` errors now):** ```matlab solve('x^2 + 2*x - 3 = 0') dsolve('Dy = -a*y') ``` **CORRECT:** ```matlab syms x solve(x^2 + 2*x - 3 == 0, x) syms y(t) a dsolve(diff(y,t) == -a*y) ``` ### 2. Use `syms` for Interactive Work, `sym` for Functions and Constants - **`syms x y z`** — Creates fresh symbolic variables and clears any prior assumptions. Use for interactive scripts and Live Scripts. - **`x = sym('x')`** — Refers to a symbolic variable. Inherits existing assumptions. Required inside MATLAB functions (not scripts) because `syms` dynamically creates works...

Details

Author
matlab
Repository
matlab/agent-skills-playground
Created
9 months ago
Last Updated
today
Language
HTML
License
NOASSERTION

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

API & Backend Solid

matlab-performance-optimizer

Optimize MATLAB code for better performance through vectorization, memory management, and profiling. Use when user requests optimization, mentions slow code, performance issues, speed improvements, or asks to make code faster or more efficient.

156 Updated today
matlab
AI & Automation Solid

system-composer

Use this skill when authoring reusable, idempotent MATLAB scripts that build System Composer architecture models via the architecture-modeling API — `systemcomposer.createModel`, `addComponent`, `addPort`, `setInterface`, `connect(srcPort, dstPort)`, interface dictionaries (.sldd) with `addInterface`/`addElement`, profiles/stereotypes with `Profile.createProfile` and `addStereotype`, or `systemcomposer.allocation.createAllocationSet`. Also trigger when debugging these APIs (connections that don't appear, interfaces that don't resolve, profile save errors, `createAllocationSet` signature-mismatch errors). Do NOT trigger for ad-hoc structural edits to an already-built model (adding one SubSystem, rewiring a port) — use `building-simulink-models` with `model_edit` for that.

156 Updated today
matlab
AI & Automation Solid

math-unicode

Use whenever you need to express mathematical notation — equations, filters, set-builder, statistics, calculus, logic, ratios, drops, counts. Emit Unicode math glyphs INLINE; never wrap in `$…$`, `\(...\)`, or `$$...$$`. Terminal coding agents (Claude Code, Codex CLI, and others) do not render LaTeX, so raw delimiters appear as noise. This skill activates automatically when math is involved, in both Claude Code and Codex.

9 Updated today
JustMichael-80