MATLAB: How to find enumerated constant block inside the model using command line

enumerated constant

I am not able to find enumerated constant block using find_system function.When i try to find enumerated constant block using find_system, i get a empty cell array.Can anyone please help me with it.
I am using following command gh=find_system('testmodel','BlockType','Enumerated Constant')
testmodel is the name of my model.

Best Answer

There is no "Enumerated Constant" block type. It is a masked SubSystem block. You need to use:
find_system('testmodel','MaskType','Enumerated Constant')