Search code examples
matlabrenameblocksimulink

Modify/Update Simulink Block Name with Matlab


I would like to know if i can modify/update the name of a Simulink block with the function set_param and if yes which param name i have to put or another function.

Thanks


Solution

  • Yes, for example:

    set_param('mymodel/Gain','Name','My custom name')
    

    See the documentation on set_param for more details.