Unmask a block and delete the mask from memory
p = Simulink.Mask.get(blockName)
p = Simulink.Mask.get(blockName) gets the mask on the block specified by blockName as a mask object.
p.delete unmasks the block and deletes the mask from memory.
Get mask as an object using a masked block's path.
p = Simulink.Mask.get('myModel/Subsystem');
Unmask the block using the mask object and delete the mask from memory.