MATLAB: Finding Simulink block by sample time

sample timesimulink

I would like to search a block in Simulink by sample time. Meaning, some signals having INF as sample time, and I would like to change them, but I need to find them in the model first.

Best Answer

try this:
find_system(gcs, 'FindAll', 'on', 'SampleTime', 'inf')
where gcs means get current system and could also be replaced with the model name.