This is a simple script which counts each and every blocks from root to all reference model levels and lists all blocks used, along with instances.
How to use :
If your model file is : SchedulerRoot.mdl
This is how the script should be called.
The models on which this script runs has to be error free and
on MATLAB path.
Let me know if any issues and contribute to improve if needed.
Prashanth K B
Prashanth Kalaghatta (2021). Count all blocks used inside a model & save to excel sheet (https://www.mathworks.com/matlabcentral/fileexchange/45379-count-all-blocks-used-inside-a-model-save-to-excel-sheet), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!