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+.
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.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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
- When to Use
- When NOT to Use
- Converting from .mlx
- Rules
- Required Appendix
- Reading live scripts (Token Optimization)
- Format Reference
- Tables
- Example
- Common Patterns
- Mathematical Explanations with Equations
- Code with Inline Comments
- Tiled Layouts for Comparison
- Workflow
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.
