Agent skill · Documentation

matlab-create-live-script

Create, edit, and run plain-text MATLAB live scripts (.m files) with rich text formatting, LaTeX equations, section breaks, and inline figures. Use when generating tutorials, analysis notebooks, reports, documentation, or educational content, when modifying existing live scripts, or when converting existing binary .mlx files to .m for version control. Requires R2025a+.

matlabgithub.com/matlabGitHub ↗
claude-codecodexcopilotNOASSERTION
Install
npx skills add matlab/matlab-agentic-toolkit --skill matlab-create-live-script --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 3
SKILL.md size: 9 KB
Bundled scripts: none
Version: 2.2
Declared author: MathWorks
Path: skills-catalog/matlab-core/matlab-create-live-script/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 868
Language: MATLAB

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Live Scripts Plain-text `.m` files that render as rich documents in the MATLAB Live Editor. Version-control friendly — never use binary `.mlx`. ## When to Use - Tutorials, reports, analysis notebooks, or documentation - Interactive exploration with inline figures and equations - Version-controlled content (plain-text `.m`, not binary `.mlx`) - Converting an existing binary `.mlx` file to plain-text `.m` ## When NOT to Use - Regular scripts without rich formatting - Function files - MATLAB older than R2025a ## Converting from `.mlx` To convert a binary `.mlx` file to a plain-text `.m` live script, run the following at the MATLAB Command Window. The recipe is **not** part of the resulting `.m` file: ```matlab editor = matlab.desktop.editor.openDocument(mlxPath, Visible=0); editor.saveAs(newMPath); % use .m extension editor.closeNoPrompt; ``` ## Rules - Text lines use `%[text]` — NOT bare `%` - One paragraph = one `%[text]` line — do not hard-wrap; let the Live Editor handle line width - No empty `%[text]` lines — they render as unwanted blank space - Section headers: `%%` on its own line, then `%[text] ## Title` on next line - No blank lines in the file, except a single blank line

What's inside
Steps it walks through
  1. When to Use
  2. When NOT to Use
  3. Converting from .mlx
  4. Rules
  5. Required Appendix
  6. Reading live scripts (Token Optimization)
  7. Format Reference
  8. Tables
  9. Example
  10. Common Patterns
  11. Mathematical Explanations with Equations
  12. Code with Inline Comments
  13. Tiled Layouts for Comparison
  14. Workflow
Ships with 2 files
  • manifest.yaml
  • scripts/executeLiveScript.p
More from matlab-agentic-toolkit
All skills →
About this skill
What does the matlab-create-live-script skill do?

Create, edit, and run plain-text MATLAB live scripts (.m files) with rich text formatting, LaTeX equations, section breaks, and inline figures. Use when generating tutorials, analysis notebooks, reports, documentation, or educational content, when modifying existing live scripts, or when converting existing binary .mlx files to .m for version control. Requires R2025a+.

How do I install it?

Run `npx skills add matlab/matlab-agentic-toolkit --skill matlab-create-live-script --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From matlab/matlab-agentic-toolkit, a repository with 868 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going