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

조회 수: 7 (최근 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 CenterFile Exchange에서 Text Data Preparation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by