How to provide custom help files to internal class methods?

2 ビュー (過去 30 日間)
Rafael Oliveira
Rafael Oliveira 2012 年 2 月 8 日
編集済み: Krishna 2013 年 10 月 7 日
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
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
Sean de Wolski 2012 年 2 月 8 日
doc className>methodName
  2 件のコメント
Rafael Oliveira
Rafael Oliveira 2012 年 2 月 9 日
Hi Sean,
Using > has the same effect as the . and the /, all of them still opens the auto-generated help page... What I'd like to do is to provide a custom help for each of the functions.
Any idea how?
Sean de Wolski
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 ExchangeApp Building についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by