Create info.xml File
The info.xml file describes your custom documentation, including the name to display
for your documentation. It also identifies where to find your HTML help files and the
helptoc.xml file. Create a file named info.xml for each toolbox you document.
To create info.xml to describe your toolbox, you can adapt this template:
<productinfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="optional">
<?xml-stylesheet type="text/xsl"href="optional"?>
<matlabrelease>R2016b</matlabrelease>
<name>MyToolbox</name>
<type>toolbox</type>
<icon></icon>
<help_location>html</help_location>
</productinfo>
You can also create info.xml by using the template info_template.xml included with
the MATLAB documentation. To create and edit a copy of the template file in your current
folder, run this code in the command window:
copyfile(fullfile(matlabroot,'help','techdoc','matlab_env',...
'examples','templates','info_template.xml'),pwd)
fileattrib('info_template.xml','+w')
edit('info_template.xml')
The following table describes the required elements of the info.xml file.
XML Tag Description Value in Template Notes
MATLAB
R2016b Indicates when you added help
files. Not displayed in the
browser.
custom documentation in the
browser Contents pane.
toolbox
toolbox Allowable values: matlab,
toolbox, simulink,
blockset, links_targets,
other.
Display Custom Documentation