matlab.toml
R2026bConfigure your MATLAB® project using a matlab.toml file.
When you edit your project settings and configuration using the project user interface,
the project logs this information in the matlab.toml file, in Tom's
Obvious, Minimal Language (TOML) syntax.
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 by creating a new
matlab.toml file.
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 that includes all of the files in the folder.
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.
For example, 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
To write TOML code that is portable across all platforms, use the file separator /.
Properties
Version History
Introduced in R2026b