Lucas
Lucas

Reputation: 257

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

Upvotes: 1

Views: 2343

Answers (1)

am304
am304

Reputation: 13876

Yes, for example:

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

See the documentation on set_param for more details.

Upvotes: 3

Related Questions