How to provide custom help files to internal class methods?
1 次查看(过去 30 天)
显示 更早的评论
Hi!
I'm trying to write some custom documentation for a class I've written, but I'm not sure how to connect the html files for each of the class methods with the class itself, so that when someone runs:
doc className.methodName
They get redirected to the correct html file that I've created: className.methodName.html, and not to the standard class help that MATLAB automatically generates.
This is very simple to do for normal functions, but I could not find how to do it for classes...
Is it possible? If so, how?
Thanks!!
1 个评论
per isakson
2012-2-10
I deleted my answere. I didn't read the question carefully enough. Did you try
http://undocumentedmatlab.com/?s=html+help
回答(1 个)
Sean de Wolski
2012-2-8
doc className>methodName
2 个评论
Sean de Wolski
2012-2-9
This worked for me on a test class made.
The classdef and it's methods were both in an @myclass folder and it pulled up the correct doc. (R2011b)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Software Development Tools 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!