I think I have that... is that the one that pops up when you type, for example, "doc cumsum" in the command window?
Links to matlab documentation in "published" html pages
16 views (last 30 days)
Show older comments
I have a matlab file published to html, and in my comments I want to include links to matlab documentation for some of the functions. I'm using the syntax for links found here, under "Dynamic link to a matlab function reference page". Here is one of my links:
<matlab:doc('cumsum') cumsum>
I tried clicking on the links in Firefox and in Google Chrome, both times with Matlab running. In Firefox, it said "Firefox doesn't know how to open this address, because the protocol (matlab) isn't associated with any program", and in Chrome, it just did nothing. What am I doing wrong?
2 Comments
Accepted Answer
Frances
on 19 Jun 2012
1 Comment
Walter Roberson
on 19 Jun 2012
Caution: the web link that is given assumes that the software release is the current release. In the example given, you would get the link to the _current_ version of cumsum(), which might have changed since the version for your release.
Users do not need a mathworks.com account to view current software documentation, if I recall correctly. They do, however, need an account linked against a license in order to view documentation for older releases.
More Answers (2)
Sean de Wolski
on 11 Jun 2012
Use the direct URL to the online documentation, e.g:
%%to be published
%Hello
a = pi;
%%World
% <http://www.mathworks.com/help/releases/R2012a/techdoc/ref/cumsum.html doc cumsum>
magic(3)
per isakson
on 11 Jun 2012
I published
%%test
% See the local help for the <matlab:doc('publish') publish> function.
% Documentation on The Mathworks web site:
% <http://www.mathworks.se/help/techdoc/ref/cumsum.html cumsum>
to 'h:\m\cssm\html\cssm.html' and run
>> winopen('h:\m\cssm\html\cssm.html')
>> web('h:\m\cssm\html\cssm.html')
winopen launched Internet Explorer, which reports: "The webpage cannot be displayed" for the link Publish. I get the same result when I open the file with a browser outside Matlab.
With web both links works (as described in the documentation).
--- Cont. ---
The "malab:doc" line above is copied from R2012a online help
Mark Up MATLAB Comments for Publishing / Dynamic Link to a MATLAB Function Reference Page
--- Cont. ---
5 Comments
See Also
Categories
Find more on Environment and Settings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!