Get Started with MATLAB Copilot
Since R2025a
MATLAB® Copilot provides generative AI–powered capabilities specifically for the MATLAB desktop environment. It assists with MATLAB workflows and provides responses based on MATLAB specific information. You can use MATLAB Copilot to learn techniques, develop ideas, and improve productivity.
With MATLAB Copilot, you can ask questions in the Copilot Chat and get responses based on relevant MathWorks® documentation and code examples. As you type in the MATLAB Editor, autocompletions provide code predictions. Alternatively, describe the code you want, and MATLAB Copilot will create or modify code for you.
MATLAB Copilot helps with programming tasks by explaining code and error messages and adding comments. You can also automatically generate test cases to verify expected code behavior with MATLAB Test™.
Tutorials
- Set Up MATLAB Copilot
Enable MATLAB Copilot to chat, explain code, and generate code and comments.
- Write Effective Prompts for MATLAB Copilot
Apply these best practices to write effective prompts for MATLAB Copilot.
- Explain Code Using MATLAB Copilot
Use MATLAB Copilot to explain code and error messages.
- Generate and Modify Code Using MATLAB Copilot
Use MATLAB Copilot to generate and modify code and comments in the Editor, Command Window, or Copilot Chat panel.
- Change MATLAB Copilot Settings
Configure your MATLAB Copilot experience using settings.
- Generate Unit Tests Using MATLAB Copilot (MATLAB Test)
Use MATLAB Copilot to generate unit tests that exercise your MATLAB source code.