What problem does it solve?
This Skill helps you diagnose MATLAB errors and unexpected behavior by using a live MATLAB session to confirm what actually happens at runtime, not just what code appears to do.
Core Features & Use Cases
- Runtime error investigation: Understand root causes behind common failure patterns such as undefined functions, indexing issues, dimension mismatches, and exceptions from tests or tool invocations.
- Workspace and call stack inspection: Inspect variables and navigate the call stack to trace how inputs transform into the failing state.
- Static vs runtime triage: Use static analysis first when appropriate, then escalate to runtime debugging when the bug depends on data values, types, or dimensions.
- Desktop-mode-aware debugging: Avoid hanging MCP evaluations by selecting try-catch and non-pausing strategies when MATLAB has no desktop.
Use Case: When an AI agent runs a MATLAB function and reports an exception or wrong output, you can use this Skill to inspect the failing inputs, identify the precise location in user code, and propose a verified fix.
Quick Start
Ask your AI to diagnose the MATLAB error by inspecting the call stack and relevant variables for the failing run.