MATLAB: Simulink : Get handle of a Matlab-Function block, inside Matlab-Function itself

block handlefrominsideitselfmatlab functionsimulink

Hello,
Is there a way to get handle of a Matlab-Function Simulink block inside of the Matlab-Function itself?
Thanks!

Best Answer

I would think so, just try handle=get_param(Block,'handle') where "Block" is the full path of the MATLAB function block in your Simulink model.