<label>My Example Title</label>
<type>M-file</type>
<source>my_example</source>
</demoitem>
</demosection>
</demos>
Note<demosection> elements are optional.
(^3) View your examples.
a In the Help browser, navigate to the home page.
b At the bottom of the page, under Supplemental Software click the link for your
example.
Your example opens in the main help window.
Elements of the demos.xml File
- “General Information in
” on page 30-38 - “Categories Using
” on page 30-39 - “Information About Each Example in
” on page 30-39
General Information in <demos>
Within the demos.xml file, the root tag is <demos>. This tag includes elements that
determine the contents of the main page for your examples.
XML Tag Notes
<name> Name of your toolbox or collection of examples.
<type> Possible values are matlab, simulink, toolbox, or
blockset.
<icon> Ignored in MATLAB R2015a and later.
In previous releases, this icon was the icon for your example.
In those releases, you can use a standard icon,
HelpIcon.DEMOS. Or, you can provide a custom icon by
specifying a path to the icon relative to the location of the
demos.xml file.
30 Custom Help and Documentation