MATLAB: How to hide the block name in R2017a

blockhidenamesimulink

How do I hide the block name in R2017a?

Best Answer

There are at least three options to do that in R2017a:
1. Click the block and a blue ellipsis (i.e. '...') will show up on top of the block. Hover over that ellipsis and a quick toolbar with the 'Hide Block Name' option will show up. Click that option.
2. Right click the block and bring up the context menu. In the context menu, go to Format > Hide Block Name.
3. Programmatically, run the following command:
>> set_param(path_to_blk, 'ShowName', 'off');
where 'path_to_blk' is the block's path. You can get this path by running the 'gcb' command when the block is being selected.