Build Automation
R2026bSince R2022b
Use the MATLAB® build tool to standardize the build and test process for your project. With the MATLAB build tool, you can:
Define, view, and run tasks using a standardized interface.
Specify dependencies so that tasks run in the intended order.
Avoid redundant work by rebuilding only what has changed.
To get started, see Overview of MATLAB Build Tool.
For additional information on using the MATLAB build tool as part of software development, see Develop and Share Software in MATLAB.
Classes
Topics
- Overview of MATLAB Build Tool
Use the MATLAB build tool to define and run a build.
- Create and Run Tasks Using Build Tool
Create a plan using a main function and a local task function in a build file. Then, run the tasks with the build tool.
- Create Tasks That Accept Arguments
Create build tasks that accept arguments for customizing their actions. Then, run the tasks with the build tool. (Since R2023a)
- Create Groups of Tasks
Create and run a group of tasks that act as a single unit of work in a build. (Since R2024b)
- Create Custom Reusable Tasks
Implement a custom task class that you can use in multiple build files. (Since R2025a)
- Improve Performance with Incremental Builds
Run builds more efficiently by specifying task inputs and outputs. (Since R2023a)
- Cache Task Outputs
Speed up MATLAB builds with task output caching. (Since R2026b)
- Run Build from Toolstrip
Run a build interactively from the MATLAB Toolstrip. (Since R2025a)
- Emit MATLAB Build Telemetry Data with OpenTelemetry Integration
Instrument your builds with OpenTelemetry™ to emit traces and metrics to observability backends. (Since R2026a)