MATLAB: How to unlink a Simulink library block from the Simulink model at the MATLAB command prompt

blockcommandlibrarylinemodelpromptsimulinksyntaxunlink

How do I unlink a Simulink library block from my Simulink model at the MATLAB command prompt?

Best Answer

To unlink your Simulink library block from the MATLAB command prompt, you need to set the 'linkstatus' property of your block to 'none' using the SET_PARAM command as follows:
set_param(gcb,'LinkStatus','none')