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
Dan Lluch (2020). Simulink Library Usage Stats (https://www.mathworks.com/matlabcentral/fileexchange/3928-simulink-library-usage-stats), MATLAB Central File Exchange. Retrieved .
Be sure to also see John Kluza's FIND_BLOCKSETS and LIST_BLOCKS submissions
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!