matlab-live-script
Generate professional MATLAB plain text Live Scripts (.m files) with rich text documentation, mathematical equations, and visualization code following specific formatting standards.
Introduction
The MATLAB Live Script Generator is a specialized skill designed for developers, educators, and data scientists who need to produce high-quality, readable, and reproducible MATLAB documentation. Unlike binary .mlx files, this skill focuses on creating plain text .m files that maintain the rich layout capabilities of Live Scripts while being version-control friendly and easily readable by coding agents.
This skill automates the complex formatting rules required for Live Scripts, such as specific section tagging using %% and %[text] markers, LaTeX equation rendering with doubled backslashes, and proper handling of bulleted lists and tables. It ensures that every script is generated with a mandatory metadata appendix, guaranteeing compatibility with the MATLAB environment and internal reader optimizations.
-
Automatically inserts mandatory appendix metadata for proper Live Script rendering.
-
Implements consistent section headers using the required %% and %[text] ## pattern.
-
Supports LaTeX equation rendering with proper double-backslash escape sequences.
-
Provides templates for interactive documentation, including markdown-based bulleted lists and structured tables.
-
Manages plot and figure display through implicit creation without restrictive commands like figure or clear.
-
Enhances code readability by enforcing rich text documentation instead of verbose fprintf comments.
-
Facilitates educational content creation by integrating code blocks with narrative descriptions.
-
Optimizes token usage for coding agents by standardizing file structure and ignoring heavy metadata in processing.
-
Always ensure files utilize the .m extension to remain in plain text format.
-
Avoid using binary .mlx formats to maintain compatibility with standard source control and text editors.
-
Use this skill when generating tutorials, research analysis reports, classroom materials, or documenting algorithm implementations.
-
Remember that the required appendix must always appear at the end of the script to prevent rendering errors.
-
Do not use commands like close all or clear at the top of scripts to avoid workspace interference during execution.
-
Always use the %[text] prefix for documentation to ensure proper display within the MATLAB Live Editor interface.
Repository Stats
- Stars
- 76
- Forks
- 19
- Open Issues
- 1
- Language
- MATLAB
- Default Branch
- main
- Sync Status
- Idle
- Last Synced
- May 1, 2026, 09:57 AM