Build Automation
Since 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.
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 Similar Tasks
Create and run a group of related tasks that act as a single unit of work in the build tool. (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)
- Run Build from Toolstrip
Run a build interactively from the MATLAB Toolstrip. (Since R2025a)