optimist
optimist

Reputation: 1018

Accessing the output of Matlab help command

I am working for a Readme generator script for several functions written in Matlab. For this, I need to write the output produced by the command

help <function_name>

to the Readme file. I am looking for a way to to access the output as string and store it to file.

Upvotes: 0

Views: 43

Answers (1)

J&#248;rgen
J&#248;rgen

Reputation: 863

The help function returns the displayed text. Example:

text = help('help');
disp(help)
text =

  HELP Display help text in Command Window.
     HELP, by itself, lists all primary help topics. Each primary topic
     corresponds to a folder name on the MATLAB search path....

Upvotes: 1

Related Questions