Matlab: Find all gain blocks
find_system('BlockType', 'Gain')
This will list all gain blocks in currently loaded models. to limit to a particulat model:
find_system('testharness', 'BlockType', 'Gain')
Programming
Matlab
Simulink
]