Simulink Library Usage Stats

Script that interrogates Simulink models for library block usage.

You are now following this Submission

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 (2026). Simulink Library Usage Stats (https://se.mathworks.com/matlabcentral/fileexchange/3928-simulink-library-usage-stats), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Modeling in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0.1

Updated license

1.1.0.0

- added copyright line to MATLAB file

1.0.0.0

cleaned output presentation: added indents and removed new line characters