How to make a bold word in text written for the "help" command

If you type help sin, you will notice that the word is sinin bold. How can I achieve this in my own function?

%
% If I write things here, they will compare as a result of "help" command
% How to make something bold?
%
function result = myfunction(...)

% ...

end
+4
source share
1 answer

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.

:

+5

Source: https://habr.com/ru/post/1543840/


All Articles