This 90-minute workshop shows how MATLAB Projects and MATLAB Package Manager create a consistent development environment for people, continuous integration (CI) systems, and AI agents.
This hands-on workshop guides you through:
- Open a MATLAB Project to set up the development environment
- Run
FlightSensorApp, which has a package dependency - Install
Chart_Examplesfrom File Exchange using MATLAB Package Manager - Declare
Chart_Examplesinmatlab.tomlso MATLAB installs it when the project opens - Build an
.mltbxfile to share the app and its supporting files
The workshop requires MATLAB R2026b and Statistics and Machine Learning Toolbox.
Use the MATLAB Expo 2026 workshop license to start MATLAB for this workshop.
- In the MATLAB Files panel, double-click
matlab.tomlto open the project. MATLAB configures the project paths. - In the Project tab, select WorkshopGuide.
- Complete
WorkshopGuide.min order.
Step-by-step instructions are available in:
- WorkshopGuide.m - Interactive plain-text Live Script for completing the workshop in MATLAB
- WorkshopGuide.md - Markdown version for viewing on GitHub or in another editor
- PresentationSlides.pdf - Workshop presentation slides
The guide begins with the app's core workflow and an optional File Exchange capability that is unavailable until Chart_Examples is installed. Use the app Refresh button after installing the package to recheck its availability without closing the app.
The starter matlab.toml includes a commented Chart_Examples dependency template. During the workshop, add the dependency by using the MATLAB Projects UI, uncommenting the template, or running workshopAddPackageDependencyToProject. MATLAB Projects installs declared package dependencies when the project opens.
WorkshopGuide.m- Plain-text live script containing the student workflowWorkshopGuide.md- Markdown version of the workshop guidePresentationSlides.pdf- Workshop presentation slidesmatlab.toml- MATLAB Project configurationsrc/app/FlightSensorApp.m- Plain-text App Designer appsrc/data/FlightData.xlsx- Flight sensor data used by the appsrc/examples/ExploreVirtualSensorWithChartExamples.m- Chart Examples exploration scripttests/- Unit tests for the data-loading, cleaning, model-fitting, and sampling functionsutils/- Workshop helpers for adding package dependencies and metadata and restoring the starter project configurationbuildfile.m- Build Tool tasks for code checks, tests, and building a package
The starter matlab.toml intentionally does not contain a [[package]] section. During the workshop, create the package configuration by clicking Build Package in the MATLAB Project Toolstrip or running workshopAddPackageMetadataToProject. Only after that configuration exists can you run:
buildtool packageThe task creates the .mltbx package file in the output folder configured in the package task. The .mltbx can then be published to a package repository so other users can install the package with MATLAB Package Manager.
Copyright 2026 The MathWorks, Inc.