RunMat
  • Pricing
RunMat
GitHub
GitHub
Sign inTry in browser
DesktopRuntimePhysicsCADAdministrationAgent

Get RunMat updates

New releases, guides and examples.

Product+
  • Runtime
  • GPU
  • Parallel
  • Compile
  • Interop and MEX
  • Simulation
  • MCAD
  • ECAD
  • Enterprise
  • AI integrations
  • Pricing
  • Download
Math+
  • Signal processing
  • Linear algebra
  • Statistics
  • Curve fitting
  • Differential equations
  • Control systems
  • Optimization
  • Finance
  • Data and tables
  • Plotting
Physics+
  • Simulation overview
  • Structural
  • Thermal
  • Electromagnetic
  • Joule heating
  • Thermal stress
  • Acoustics
  • Fluid flow
  • Conjugate heat transfer
  • Fluid–structure
  • What is FEA
Industries+
  • Aerospace
  • Automotive and transportation
  • Defense
  • Electronics and semiconductors
  • Energy
  • Industrial machinery
  • Life sciences
  • Quantitative finance
Learn+
  • Guides
  • Docs
  • Function reference
  • Language reference
  • Migration guide
  • Changelog
  • MATLAB Online
  • MATLAB AI agent
  • For students
Compare+
  • RunMat vs MATLAB
  • RunMat vs Ansys
  • RunMat vs SOLIDWORKS
  • RunMat vs Altium
  • RunMat vs Cadence
  • RunMat vs COMSOL
  • RunMat vs Python
  • RunMat vs Julia
  • RunMat vs Physics AI
  • RunMat vs Octave
  • Benchmarks
  • MATLAB alternatives
  • All comparisons
Company+
  • About
  • Blog
  • Contact
  • Source code↗
  • License
  • Privacy
  • Terms

Product

  • Runtime
  • GPU
  • Parallel
  • Compile
  • Interop and MEX
  • Simulation
  • MCAD
  • ECAD
  • Enterprise
  • AI integrations
  • Pricing
  • Download

Math

  • Signal processing
  • Linear algebra
  • Statistics
  • Curve fitting
  • Differential equations
  • Control systems
  • Optimization
  • Finance
  • Data and tables
  • Plotting

Physics

  • Simulation overview
  • Structural
  • Thermal
  • Electromagnetic
  • Joule heating
  • Thermal stress
  • Acoustics
  • Fluid flow
  • Conjugate heat transfer
  • Fluid–structure
  • What is FEA

Industries

  • Aerospace
  • Automotive and transportation
  • Defense
  • Electronics and semiconductors
  • Energy
  • Industrial machinery
  • Life sciences
  • Quantitative finance

Learn

  • Guides
  • Docs
  • Function reference
  • Language reference
  • Migration guide
  • Changelog
  • MATLAB Online
  • MATLAB AI agent
  • For students

Compare

  • RunMat vs MATLAB
  • RunMat vs Ansys
  • RunMat vs SOLIDWORKS
  • RunMat vs Altium
  • RunMat vs Cadence
  • RunMat vs COMSOL
  • RunMat vs Python
  • RunMat vs Julia
  • RunMat vs Physics AI
  • RunMat vs Octave
  • Benchmarks
  • MATLAB alternatives
  • All comparisons

Company

  • About
  • Blog
  • Contact
  • Source code↗
  • License
  • Privacy
  • Terms
GitHubXLinkedIn

© Dystr, Inc. · RunMat v0.7.2, Nov 26, 2026 ·

RunMat® is a registered trademark of Dystr, Inc. MATLAB® is a registered trademark of The MathWorks, Inc. RunMat is not affiliated with, endorsed by, or sponsored by The MathWorks, Inc.

/
    • Run code
    • Inspect plots and variables
    • Write a runnable notebook
    • Go back to an earlier run
Docs>Desktop>Run and inspect

Write a runnable notebook

A RunMat notebook is a Markdown file with runnable code cells. Prose, equations, diagrams, code and figures sit in one document, and the file stays plain .md, so it diffs and reviews like any other text file.

Create a notebook

  1. Add a file whose name ends in .md, for example filter.md. Desktop opens Markdown files in the notebook editor.
  2. Write prose as you would in any Markdown editor. Type / at the start of a line for a menu of blocks: headings, lists, quotes, code blocks, math blocks, tables and RunMat Cell.
  3. Choose RunMat Cell to add a runnable cell, and type MATLAB-syntax code into it.

In the file, a runnable cell is a fenced block tagged runmat:

# Low-pass filter

A first-order low-pass filter with a 250 Hz cutoff.

```runmat
fc = 250;
f = logspace(0, 4, 400);
H = 1 ./ (1 + 1i*f/fc);
```

The magnitude falls 3 dB at the cutoff.

```runmat
semilogx(f, 20*log10(abs(H)));
xlabel("Frequency (Hz)");
ylabel("Magnitude (dB)");
```

A block tagged matlab stays a code listing and doesn't run. Keep reusable functions in .m files in the project and call them from cells.

Run the notebook

With the notebook open, select Run filter.md in the top bar. Desktop runs the cells from top to bottom in one shared workspace, so a cell can use variables an earlier cell created. Each cell's figures appear under it.

Selecting Run filter.md runs a Markdown notebook's two cells; the magnitude plot appears under the second cell and the bar below reads 2/2 cells and 1 figure.

The bar under the notebook counts the cells that ran, the warnings and the figures, for example 2/2, 0, 1. Its Variables, Trace and Log tabs show the notebook's workspace and messages. The runtime panel shows the same variables; its figure area offers Transfer Figures Here if you want the figures beside the notebook instead of inside it.

Keep outputs current

When you change a cell after a run, its saved output may no longer match. The notebook shows Output may be out of date. Run the notebook to refresh. with a Run notebook button. Before you share a notebook, run it from the top so every output matches the code above it.

Two settings in Settings › Project (named Sandbox in the sandbox) control a full run:

SettingChoices
When a notebook cell failsStop at the failing cell, or Keep running the cells after it
Running a notebook again after you stop itRun the remaining cells, or Start from the top

Save outputs with the notebook

When you're signed in and Persist runs is on in Settings › Project, Desktop keeps each run's output, figures and variables with the project. Reopening the notebook later shows them without running it again. Large values and figure data are stored as project files beside the notebook, and the Markdown keeps a short reference to each one.

Saved output records what an earlier run produced. To confirm the current code, data and settings still produce it, run the notebook again. If others will rerun it, keep the datasets and runmat.toml it needs in the project.

Write math and diagrams

Notebooks render LaTeX math, inline as $H(f)$ and as display blocks between $$ lines, and Mermaid diagrams in a mermaid code block. Double-click an equation to edit it.

See Go back to an earlier run for how saved runs are kept and restored.

On this page
  • Create a notebook
  • Run the notebook
  • Keep outputs current
  • Save outputs with the notebook
  • Write math and diagrams