MATLAB: Display the tag of a Simulink block from the command window

command windowdisplaysimulinktag

Hi,
I would like to display the tag of a Simulink block from the command window.
It amounts to do that :
right click on the block -> Block Properties -> Block Annotation
-> Select %<Tag> in Block property tokens -> click on the ">>" button
and Apply
Thank you for answering me.

Best Answer

Try:
set_param('path/to/block', 'AttributesFormatString', '%<Tag>')