Links to matlab documentation in "published" html pages
Afficher commentaires plus anciens
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 commentaires
Frances
le 11 Juin 2012
per isakson
le 11 Juin 2012
That requires the built-in browser of Matlab: web('name_of_file.html')
Réponse acceptée
Plus de réponses (2)
Sean de Wolski
le 11 Juin 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)
1 commentaire
Frances
le 11 Juin 2012
per isakson
le 11 Juin 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 commentaires
Frances
le 11 Juin 2012
per isakson
le 11 Juin 2012
AFAIK: <matlab:doc('publish') publish> only works inside Matlab (command window and code). However, these features change to the better all the time.
The bloggers at the Mathworks should know. I think they typically link to the documentation at www.mathworks.com.
Did you search http://undocumentedmatlab.com/?
Frances
le 18 Juin 2012
per isakson
le 18 Juin 2012
AFAIK: That the way it works. Did you ask the Mathwork tech support?
per isakson
le 18 Juin 2012
Would you allow <matlab:eval('a=1+3') Add> on your website?
Catégories
En savoir plus sur Adding custom doc dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!