Export auto-generate Matlab doc to html

不问归期 提交于 2019-12-10 19:06:32

问题


I want to generate a complete help for a Matlab toolbox I have developped.

I have seen how to Display custom documentation by making a helptoc.xml file, but I do not understand how you can add the pages generated when you type doc My_class.

Is there a way to save the result of doc My_class to HTML pages with all links for properties and methods pages?


回答1:


You can use help2html which is not very documented but it works.

Calling:

html = help2html(mfilename);

returns verbatim the HTML file that gets displayed by doc as a 1XN char array. mfilename is the full path to the m-file you want to document. Though as an undocumented function, its interface isn't guaranteed to stay constant, the copyright notice is from 2008. So it looks like the file isn't being touched often and you can probably trust it to keep working for a while.



来源:https://stackoverflow.com/questions/14986704/export-auto-generate-matlab-doc-to-html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!