S-Function BlockType

8 views (last 30 days)
Sourabh Patil
Sourabh Patil on 28 Jan 2020
Answered: Danijel Domazet on 7 Oct 2020
In my model i have used below blocks
i need to find only s fuction blocks present in my model but after using find_system('Blocktype') along with s function above blocks also getting counted.
how to find only S-fuction block?
same case with DocBlock,Cosine block, Model Info Block & Resettable subsystem.

Answers (1)

Danijel Domazet
Danijel Domazet on 7 Oct 2020
s_blocks = find_system(model, 'SearchDepth', 1, 'BlockType','S-Function');

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!