Use generative AI with MATLAB and Simulink in engineering and science workflows, from writing and refining code to building complex engineered systems. Apply generative AI directly in MATLAB and Simulink or integrate it with external AI tools as part of your development process.
Accelerate Development with Integrated Copilots
MATLAB Copilot
MATLAB Copilot is an AI assistant optimized for MATLAB. You can use MATLAB Copilot in the MATLAB desktop to receive responses grounded in MathWorks documentation, generate MATLAB code, get answers to technical questions, and accelerate routine tasks.
Simulink Copilot
Simulink Copilot is an AI assistant optimized for Simulink. You can use Simulink Copilot to explain models and errors, learn tools and techniques, get design guidance, and automate predefined tasks.
Polyspace Copilot
Polyspace Copilot is an AI assistant optimized for Polyspace. You can use Polyspace Copilot to discover relevant polyspace capabilities, explain Polyspace as You Code findings, and get guidance on how to modify your C/C++ code to fix findings.
eBook
Your Guide to Agentic AI with MATLAB
Connect LLMs to MATLAB through the Model Context Protocol and create AI agents that code, run simulations, and iterate autonomously. Learn how in this practical ebook.
Connect MATLAB and Simulink with External AI Agents
Integrate MATLAB and Simulink with agentic AI workflows
Connect AI coding agents to MATLAB and Simulink with toolkits that provide expert skills, MCP tools, and platform configurations. Works with Claude Code, GitHub® Copilot, OpenAI® Codex, Sourcegraph Amp, and Gemini CLI.
MATLAB Agentic Toolkit
Equip AI coding agents with expert knowledge and a live connection to MATLAB. The toolkit provides curated skills for testing, debugging, app building, and code review, plus MCP tools that let agents run code and execute tests directly.
Simulink Agentic Toolkit
Give your AI agent tools and expertise to work with Simulink models. The toolkit provides skills that encode best practices for Model-Based Design and MCP tools for design, debugging, and testing.
Use AI assistants in Visual Studio Code with MATLAB
The MATLAB extension for Visual Studio Code enables you to edit and run MATLAB code in Visual Studio Code, with features such as syntax highlighting, code analysis, and navigation support. You can use the extension with agentic AI assistants in Visual Studio Code such as GitHub Copilot and Cursor.
Deploy your MATLAB algorithms and models as MCP tools
MCP Framework for MATLAB Production Server deploys your MATLAB function to MATLAB Production Server as an MCP tool. This enables your AI agent to respond to queries with your own custom algorithms. Intellectual property is secured in encrypted packages. You can access deployed tools without a MATLAB license.
Build AI Applications in MATLAB
Incorporate generative AI models in your MATLAB applications
You can connect MATLAB programmatically to popular LLM APIs like OpenAI and Azure® OpenAI Service, as well as local LLMs via Ollama. Once connected, you can build chat features and retrieval-augmented generation (RAG) into your apps, summarize data, and generate image descriptions using an LLM.
With the MATLAB MCP client, you can build generative AI applications within MATLAB that leverage existing tools and connect to external MCP servers.