Links in method help / documentation

18 ビュー (過去 30 日間)
Simon Parten
Simon Parten 2017 年 8 月 14 日
編集済み: Guillaume 2017 年 8 月 16 日
I'd like to understand why this link is not displayed in the help documentation?
function obj = occScenarios()
% <http://www.mathworks.com MathWorks>
end
I would very much like to be able to link to an external source to be able to direct a user toward help.
  2 件のコメント
Jan
Jan 2017 年 8 月 14 日
編集済み: Jan 2017 年 8 月 14 日
Where do you want these links to be accessible? In the output of help to the command window? In the editor directly? In the doc browser of Matlab? What exactly is "in the help documentation"?
Simon Parten
Simon Parten 2017 年 8 月 16 日
編集済み: Simon Parten 2017 年 8 月 16 日
If I press f1 with the text for a class highlighted, I get help.
I haven't found matlab documentation / help options to be particulaly good, or user friendly. Instead, I want to link to an internal wiki for help with any custom objects.
This has worked well where the help is the class or function signature. However, even if one has the object in the workspace (so that matlab knows it's type), and you search for help on the function, no link is displayed. It just displays blank, where in the example below (for the class summary), there is a link.
MY question, is why are these behaviours different?
i.e. I want the picture above, method comments and properties of objects to render links (instead of blank) in their help documentation (by pressing f1, when the object is in the workspace, so that matlab knows the 'type' of the object').

サインインしてコメントする。

採用された回答

Sean de Wolski
Sean de Wolski 2017 年 8 月 16 日
methods
function foo
% <a href="matlab:disp('Hello World')">Hello!</a>
end
end
  1 件のコメント
Simon Parten
Simon Parten 2017 年 8 月 16 日
編集済み: Guillaume 2017 年 8 月 16 日
Yes. This works.
% <a href="matlab:web('www.mathworks.com','-browser')">Internal Wiki [Display Text]</a>

サインインしてコメントする。

その他の回答 (1 件)

Shashank
Shashank 2017 年 8 月 16 日
Hi Simon,
Please refer the following Documentation link for more information:
Hope this helps you to get started.
-Shashank
  1 件のコメント
Simon Parten
Simon Parten 2017 年 8 月 16 日
編集済み: Simon Parten 2017 年 8 月 16 日
My apologies, the answer was indeed on this page.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGraphics Object Identification についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by