A curated collection of prompts for AI coding assistants to enhance MATLAB® development workflows
Prompts designed for use with MATLAB Copilot, GitHub Copilot, Claude Code, Cursor, Windsurf, Cline, Sourcegraph Cody, and other AI coding assistants. These prompts help users write MATLAB code, create Live Scripts, work with MathWorks toolboxes, and streamline workflows.
Create Live Scripts, generate documentation, and format MATLAB help text for functions and scripts.
Optimize performance, handle errors, validate inputs, and write clean, efficient MATLAB code.
Build neural networks, perform statistical analysis, train machine learning models, and analyze data.
Design filters, analyze spectra, process signals, and work with communications systems.
Enhance images, detect features, segment objects, and process video streams.
🗺️ Mapping
Create world maps, analyze geospatial data, and visualize geographic information with custom projections.
Design controllers, analyze stability, tune parameters, and simulate dynamic systems.
Generate C/C++ code, create standalone applications, and deploy MATLAB algorithms to production.
- Browse the categories above to find a prompt that matches your task
- Copy the prompt from the individual prompt file
- Customize the placeholders (e.g.,
[YOUR TOPIC HERE]) with your specific requirements - Paste into your AI coding assistant (MATLAB Copilot, GitHub Copilot, Claude Code, etc.)
- Iterate - refine the output by providing additional context or constraints
- Be specific about MATLAB release requirements (e.g., R2024a+)
- Mention required toolboxes explicitly
- Provide example inputs/outputs when possible
- Ask for comments and documentation
- Request error handling and input validation
We welcome contributions! To add a new prompt:
- Choose the appropriate category folder in
prompts/ - Create a new
.mdfile using the template - Add your prompt to the category's README
- Submit a pull request
See CONTRIBUTING.md for detailed guidelines.
