Initialize a MATLAB Toolbox

Create a basic set of folders and files for a MATLAB toolbox
Updated 6 Apr 2024

View Initialize a MATLAB Toolbox on File Exchange Open in MATLAB Online

Initialize a MATLAB Toolbox

The function inittbx initializes a folder hierarchy and a basic set of files according to MATLAB Toolbox Best Practices by rpurser47 and others. The resulting hierarchy contains:

  • toolbox folder with a sample function and a sample gettingStarted.mlx
  • toolbox/examples folder with a sample example
  • tests folder with a sample test
  • Configuration files that enable buildtool to run code checks, run tests, and produce a release package
  • (stub)
  • (stub)
  • with a to-do list for getting your toolbox ready to publish


Download the inittbx.mltbx file from the GitHub repository releases area or from the File Exchange. Double-click on the downloaded file to automatically and run the MATLAB add-on installer. This will copy the files to your MATLAB add-ons area and add inittbx to your MATLAB search path.

Later, you can use the MATLAB Add-On Manager to uninstall.

Getting Started

See the Getting Started script for more information.

Copyright © 2024 Steven L. Eddins

Cite As

Steve Eddins (2024). Initialize a MATLAB Toolbox (, GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2024a
Compatible with R2023b and later releases
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.