How to differentiate Subsystem and MATLAB Function Block with find_system()
2 views (last 30 days)
I have a model with many Subsystem blocks and many MATLAB Function blocks. I'm trying to use find_system to store all Subsystem blocks but as the type of both blocks is Subsystem i can't store Subsystems with this code:
find_system('model', 'SearchDepth', 1, 'BlockType', 'SubSystem');
How can i limit to only Subsystems ?
Thanks you !