Writing Help Browser Documentation... How do I add a link to an external file?

1 回表示 (過去 30 日間)
Jeff
Jeff 2012 年 2 月 1 日
Hi Fellow MATLAB-ers,
I am trying to spruce up the documentation for a custom toolbox and am having difficulty with a link to an external file. I'd like the documentation to display a link that will launch the file in an external application (e.g. Acrobat for PDF files).
I've read through the publish documentation and it seems like the following should work...
%%Help for Function Foo
% This is a comment block at the top of a .m file.
% The publish command dumps this to an html file.
%
% The publish options I am using are:
%
% pub_opts = struct('showCode', false, 'evalCode', false, ...
% 'format', 'html','outputDir', HelpDir);
%
%%Sub-section 1
% Some more description
%
% <matlab:open('MyFile.pdf') Click here to open MyFile>
%
%%Sub-section 2
% Some more description
%
When I run this through the publish command and view the result in the Help Browser, the link is not active. The full <matlab:open statement is shown as plain text.
Am I missing something obvious? Thanks!

回答 (1 件)

Kaustubha Govind
Kaustubha Govind 2012 年 2 月 1 日
The documentation seems to suggest that what you're doing should work. However, this functionality was introduced only in R2009a, so you might need to upgrade if you're using an older version.

カテゴリ

Help Center および File ExchangeText Data Preparation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by