matlab-live-script

Generate MATLAB plain text Live Scripts (.m files with %[text] sections and required appendix).

162|31|Updated Oct 25, 2025
One-click install
npx skills add https://github.com/matlab/skills --skill matlab-live-script
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: matlab-live-script
Source: https://github.com/matlab/skills/tree/main/skills/matlab-live-script
Command: npx skills add https://github.com/matlab/skills --skill matlab-live-script

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a reliable method to create MATLAB plain text Live Scripts in .m format, enabling readable, document-rich code without relying on binary .mlx files.

Core Features & Use Cases

  • Plain text Live Script format: .m files that combine code and rich text annotations using the %[text] syntax.
  • Compliance with requirements: ensures the required appendix is appended and the section headers follow the strict format.
  • Use Case: educators preparing tutorials, students documenting steps, or developers sharing executable examples with embedded explanations.

Quick Start

Create a new MATLAB plain-text Live Script in .m format that follows the formatting rules, and ends with the exact appendix. For example, generate example.m with a title line, sections using %% and %[text], sample code, and the required appendix.

Frequently Asked Questions about matlab-live-script

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a MATLAB Live Script in plain text format instead of a binary mlx file?

To create a plain text MATLAB Live Script, generate a .m file using the %[text] syntax for rich text annotations and %% for section headers. This approach replaces binary .mlx files with readable, documentation-rich code that is easy to share and version control.

Can I use plain text .m files for MATLAB tutorials and classroom materials?

Yes, plain text .m files are ideal for MATLAB tutorials and classroom materials. They combine executable code with rich text annotations using the %[text] syntax, ensuring educators and students can read, document, and share steps without relying on binary formats.

What is the %[text] syntax used for in MATLAB plain text Live Scripts?

The %[text] syntax in MATLAB plain text Live Scripts is used to embed rich text annotations directly within .m files. It allows you to add formatted documentation, explanations, and titles alongside your code, replacing the need for binary .mlx files.

Does a plain text MATLAB Live Script require specific formatting rules for section headers and appendices?

Yes, plain text MATLAB Live Scripts must follow strict formatting rules, including specific section headers using %% and a required appendix appended at the end of the .m file. These rules ensure the document maintains its structured, documentation-rich format.

Why should I use plain text .m files over binary .mlx files for MATLAB documentation?

You should use plain text .m files over binary .mlx files to ensure your MATLAB documentation is readable and version-control friendly. Plain text formats combine code with rich text annotations while avoiding the compatibility and sharing issues of binary files.

How do I add executable code examples with embedded explanations in a MATLAB .m file?

To add executable code examples with embedded explanations in a .m file, use the MATLAB plain text Live Script format. Embed your explanations using the %[text] rich-text syntax and separate code sections using %% headers to create readable, documented examples.