matlab.toml
R2026bConfigure your MATLAB® project using a matlab.toml file.
When you edit your project settings and configuration using the user interface, the
project logs this information in the matlab.toml file. You might need to
read and edit the matlab.toml file when comparing versions or resolving
conflicts.
You can also create and configure a project from scratch using the TOML syntax.
In the Files Panel, in the folder you want to create a project in, create a text file named
matlab.toml.This action creates an unnamed project. All files in the folder are included in the project.
Open the
matlab.tomlfile as a text file. In the Files panel, right-clickmatlab.tomland select Open as Text. Double-clicking thematlab.tomlfile opens the project in the panel instead.Configure the project using the properties listed in Properties. All properties are optional.
This TOML code defines a project named My Project, where the two
folders utilities and src are on the MATLAB search path. The setup.m file runs on project startup and the
cleanup.m file runs on project shutdown. The project also has one
shortcut topLevel in the MyShortcuts group.
name = "My Project"
[folders]
path = [
"utilities",
"src",
]
[project]
startup-files = [
"helper_scripts/setup.m",
]
shutdown-files = [
"helper_scripts/cleanup.m",
]
[project.shortcuts."MyShortcuts"]
"topLevel" = {path = "src/topLevel.slx"}Tip
Use the file separator / to ensure portability across all platforms.
Properties
Version History
Introduced in R2026b