Robuta

https://se.mathworks.com/help/simulink/slref/find_mdlrefs.html find_mdlrefs - Find referenced models and Model blocks in model hierarchy - MATLAB This MATLAB function finds the referenced models and Model blocks in the hierarchy specified by sys. findreferencedmodelsblockshierarchy