MATLAB Copilot

NEW PRODUCT

 

MATLAB Copilot

AI assistant optimized for MATLAB

Chat with MATLAB Copilot

Ask MATLAB Copilot for code snippets, functions, or entire solutions. MATLAB Copilot responses are based on MathWorks documentation and code examples.

Screenshot of the MATLAB desktop showing two separate plots for current and torque, a user’s prompt requesting both values on the same chart, and newly generated code that implements the requested change.

Generate or Modify Code

Describe the code you want and have MATLAB Copilot generate new code or edit existing code.

Screenshot of the MATLAB desktop showing a script for solving a differential-algebraic equation model of a transistor amplifier circuit. MATLAB Copilot, in the right panel, provides a brief overview, summary, and walkthrough of the code.

Get Code Explanations

Generate easy-to-follow explanations of code that you are unfamiliar with, or add comments to your code.

Screenshot of the MATLAB desktop showing a line of code that has thrown an error together with an explanation and troubleshooting recommendation provided by MATLAB Copilot.

Get Error Explanations

When you encounter an error message, use MATLAB Copilot to get an explanation and troubleshooting recommendations.

Screenshot of the MATLAB desktop showing a script that calculates the surface area and volume of a sphere, including code suggested by MATLAB Copilot.

Autocomplete Code

Save time by using code predictions that are automatically generated by MATLAB Copilot.

Screenshot of the MATLAB desktop with two panes: the left displays a simple function to calculate the area of a circle and the right shows a test file with unit tests for the function.

Create Tests

Generate tests for your code to verify code correctness, evaluate reliability across different inputs, and detect errors after the code has been modified (with MATLAB Test).