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 with External AI Agents
Integrate MATLAB with agentic AI workflows
MATLAB MCP Core Server enables you to connect third-party agentic AI tools like Claude Code, OpenAI® Codex, or GitHub® Copilot to a MATLAB instance. You can use built-in tools for code execution, static code analysis, 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.