Create Custom Arduino Library Package Folder
R2026bIf you used arduinoio.customLibrary.createLibraryTemplate, the required folder
structure was generated automatically. This section describes how to create it from
scratch.
The custom Arduino® library folder is a MATLAB® package folder. The top-level package folder name must be the name of your
custom Arduino library preceded by a + sign.
The package folder must contain two files: MATLAB Custom Arduino Library Class and the C++ Header File file.
Note
Use only ASCII characters in your MATLAB and C++ classes.
Create a folder package to contain all the files for your custom library, and add it to the MATLAB path. For example:
Add a folder named
+arduinoioaddonsin your working folder.In
+arduinoioaddons, add a+HelloWorldFoldersubfolder.This folder contains the MATLAB Custom Arduino Library Class file.
In the
+HelloWorldFoldersubfolder, add asrcfolder that contains the C++ Header File.

See Also
Create and Configure C++ Header File | Create and Configure MATLAB Custom Arduino Library Class