MATLAB: How can the Library Browser display a user-defined library that is part of a user-defined toolbox

simulink

I am working on a custom toolbox that includes a Simulink library by following the Toolbox Distribution Documentation. How can the library be automatically included in the Simulink Library Browser?

Best Answer

You may do this by adding a “slblocks.m” file to the folder with the library before you package the toolbox.
The documentation page below describes how to create the “slblocks.m” file: