This function will return the total number of blocks in a Simulink model hierarchy, including those that are inside model reference blocks. This is useful for large-scale modeling, so that you can determine the total model size. For comparison, the built-in function sldiagnostics('ModelName','CountBlocks') does not include anything inside model reference blocks.
Updated copyright statements for BSD license
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.