Content of "help MML":
MML types the MathML code of a term and displays it in a webbrowser.
MML displays the current content of the global variable ANS in the system's standard webbrowser.
MML(TERM) displays TERM in the system's standard webbrowser.
MML(OPTION) displays the current content of the global variable ANS according to the display parameter OPTION.
MML(TERM,OPTION) displays TERM according to the dispaly parameter OPTION.
TERM can either be a syntactically valid symbolic or non-symbolic MATLAB expression or a string containing a syntactically valid symbolic or non-symbolic MATLAB or Maple expression.
OPTION can contain a character string from the list of display otions below.'type': Types the MathML code of the given term in the command window, and displays the term in the system's standard webbrowser.
'nwb': No Web Browser. Types the MathML code of the given term in the command window. The term is not displayed in the webbrowser.
HOW MML WORKS:
The MML function passes the given term to the MATHML[EXPORT] function of the Maple Kernel. MATHML[EXPORT] returns a string containing the MathML sourcecode of the term. The MML function embeds the MathML code in HTML code and saves it in a file with the default name "mml_code.htm". This HTML-file is then opened with the system's standard webbrowser.Code is placed in the header of the HTML file to enable the browser for displaying MathML code with MathPlayer without being online. For this reason a namespace "m:" is added to each MathML tag.
Marko Reinhold and Michael Kempf
Hochschule Bremen, Germany 2003
Prof. Dr.-Ing. Joerg J. Buchholz
As of R2008b, Matlab uses a new symbolic engine (MuPAD instead of Maple). If you want to use mml with >R2008b you have to substitute the following line in mml.m:
by the line:
MATHML_SOURCECODE = char (feval (symengine, 'generate::MathML', arguments.input_term));
I use Design Sciences MathType equation editor in MS Word with MATHPLAYER to create and display XML/MathML files that contain supplemental notes for my students in electrical and computer engineering. I also use MATLAB. I was pleasantly surprised and very pleased to learn of this submission. I hope that MATLAB will increase its support of MathML so that it matches or exceeds that of Mathematica and Maple.
Updated to add a BSD license. Check the user comments for useful information.