Conformal: MATLAB Shape AnalyzerStatic shape and dimension analysis for MATLAB. No MATLAB license required. Conformal finds matrix dimension errors before you run your code. If What it catchesMost of what it catches comes down to dimension mismatches, whether that's in multiplication, concatenation, element-wise operations, or backslash solves. It can also flag type errors when you use structs or cells where numbers are expected, and it checks for index out of bounds, division by zero, and negative dimensions when it can prove them from the code. It follows shapes through user-defined functions (including pre-2016 end-less definitions and no-arg procedures), anonymous functions with closure capture, and cross-file calls to sibling In the editorDiagnostics show up as underlines as you type, and you can hover any variable to see its inferred shape ( The analyzer handles most files in under 100ms, so real-time analysis is on by default with a 500ms debounce. A 700-line file with 36 warnings takes about 99ms, and cross-file workspace analysis runs in under 70ms. There's no MATLAB runtime involved. InstallSearch "Conformal" in VS Code Extensions, or run:
On first activation, the extension creates a Python venv, installs its dependencies, and uses the bundled analyzer. You shouldn't need to configure anything. Requires Python 3.10+. How it worksThe extension runs Under the hood, there are 128 builtin shape rules (200+ recognized builtins total), symbolic dimension tracking, constraint solving, interval analysis, and fixed-point loop convergence, all validated by 312 tests across 16 categories. The parser has been tested against 38 Commands
Settings
|