Use the MATLAB Feature in this repository to add MATLAB®, Simulink®, and other MathWorks™ products to your development containers.
For more information about running MATLAB in dev containers, see Run MATLAB in GitHub™ Codespaces.
A development container Feature (GitHub) is self-contained code you can use to add functionality to your development container. You can add a feature to your development container by modifying devcontainer.json
, the configuration file of the container. For instructions on creating a development container and adding a feature, see Create a Dev Container (VS Code Docs).
Use the MATLAB Feature to:
- Install the system dependencies required to run MATLAB and other MathWorks products.
- Install MATLAB and other MathWorks products using MATLAB Package Manager.
- Add MATLAB to the system PATH.
- Install Python packages such as the MATLAB Engine for Python, MATLAB Proxy, and MATLAB Integration for Jupyter.
To use the MATLAB Feature, include it in your dev container by specifying the devcontainer.json
configuration file with your desired MATLAB Feature Options.
For example, to install MATLAB R2024a
with Symbolic Math Toolbox in a ubuntu
base image, use this devcontainer.json
configuration:
{
"image": "ubuntu:latest",
"features": {
"ghcr.io/mathworks/devcontainer-features/matlab:0": {
"release": "r2024a",
"products": "MATLAB Symbolic_Math_Toolbox"
}
}
}
This configuration installs MATLAB R2024a in your dev container and adds the matlab
executable to your PATH.
Codespaces:
Dev Containers:
Dev Container Features:
- Dev Container Features (GitHub)
- Dev Container Features Specification
- Dev Container Feature JSON Properties
Copyright 2024 The MathWorks, Inc.