
While MATLAB provides a few options for integrating generative AI into your workflow, GitHub Copilot is not natively supported. However, there are other model options and an official MATLAB extension for VS Code detailed below.
Sections
MATLAB & GitHub Copilot
- Authenticate your GitHub Copilot license in VS Code following our instructions here
- Load a MATLAB module, and install the official MathWorks MATLAB extension in VS Code.
- Create a new or open an existing MATLAB script file (
.m
) and deploy GitHub Copilot. Read more about this feature in MATLAB’s blog Matlab Extension for Visual Studio Code: Yes, it works with GitHub Copilot.
MATLAB AI Chat Playground
The AI Chat Playground is an optimized OpenAI model for use with MATLAB-related inputs, outputs, and toolboxes. This is a free-to-use product with “guardrails” to keep usage to MATLAB and Simulink.
Connect MATLAB to the OpenAI API
While GitHub Copilot cannot be accessed from within the MATLAB IDE, you can interface with OpenAI models natively. Please follow the instructions in MATLAB’s blog Large Language Models with MATLAB.
Last updated: May 2, 2024