Simulink Library Usage Stats

version (1.54 KB) by Dan Lluch
Script that interrogates Simulink models for library block usage.


Updated 1 Sep 2016

View License

This file leverages SLDIAGNOSTICS to extract statistics of library block usage from Simulink Diagrams. It will report
- number of times blocks are used from each library
- how many unique blocks are from that library and the total count of each.
Here is sample output for one library in a sample model:

dsparch4 : 5
unique blocks : 2
dsparch4/Digital Filter Design : 4
dsparch4/Digital Filter : 1

Cite As

Dan Lluch (2022). Simulink Library Usage Stats (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!