It works as follows:
function testfun()
% this is the testfun help text
end
Extradition help testfunwill lead you to
this is testfun help text
But when you write TESTFUNin all uppercase, i.e.
function testfun()
% this is the testfun help text
end
help testfun will display
this is testfun help text
Note that this only works for the function name, so changing the "text" to "TEXT" will not make the text of the text bold. Also, this seems to work only in the graphical version of Matlab.
: